Update workflows
This commit is contained in:
parent
c5bdeccd00
commit
9dd5b8a5c3
9
.github/dependabot.yml
vendored
9
.github/dependabot.yml
vendored
|
@ -1,5 +1,14 @@
|
||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
||||||
|
time: "08:00"
|
||||||
|
timezone: "Europe/Paris"
|
||||||
|
labels:
|
||||||
|
- ":game_die: dependencies"
|
||||||
|
- ":robot: bot"
|
||||||
- package-ecosystem: "npm"
|
- package-ecosystem: "npm"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
|
|
4
.github/labels.yml
vendored
4
.github/labels.yml
vendored
|
@ -1,4 +1,8 @@
|
||||||
## more info https://github.com/crazy-max/ghaction-github-labeler
|
## more info https://github.com/crazy-max/ghaction-github-labeler
|
||||||
|
- # automerge
|
||||||
|
name: ":bell: automerge"
|
||||||
|
color: "8f4fbc"
|
||||||
|
description: ""
|
||||||
- # bot
|
- # bot
|
||||||
name: ":robot: bot"
|
name: ":robot: bot"
|
||||||
color: "69cde9"
|
color: "69cde9"
|
||||||
|
|
41
.github/workflows/automerge.yml
vendored
41
.github/workflows/automerge.yml
vendored
|
@ -1,41 +0,0 @@
|
||||||
name: automerge
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- labeled
|
|
||||||
- reopened
|
|
||||||
- unlocked
|
|
||||||
- unlabeled
|
|
||||||
- synchronize
|
|
||||||
pull_request_review:
|
|
||||||
types:
|
|
||||||
- submitted
|
|
||||||
check_suite:
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
status: {}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
dependabot:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Automerge
|
|
||||||
uses: pascalgn/automerge-action@v0.8.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
MERGE_LABELS:
|
|
||||||
MERGE_METHOD: squash
|
|
||||||
MERGE_COMMIT_MESSAGE: automatic
|
|
||||||
-
|
|
||||||
name: Dispatch event
|
|
||||||
uses: actions/github-script@v1
|
|
||||||
with:
|
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
script: |
|
|
||||||
github.repos.createDispatchEvent({
|
|
||||||
...context.repo,
|
|
||||||
event_type: 'ncc'
|
|
||||||
})
|
|
24
.github/workflows/lint.yml
vendored
24
.github/workflows/lint.yml
vendored
|
@ -1,24 +0,0 @@
|
||||||
name: lint
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- '.github/workflows/lint.yml'
|
|
||||||
- 'src/*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
-
|
|
||||||
name: Set up Node
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
-
|
|
||||||
name: Setup TS
|
|
||||||
run: npm install tslint typescript -g
|
|
||||||
-
|
|
||||||
name: Lint check
|
|
||||||
run: tslint './src/*.ts'
|
|
42
.github/workflows/ncc.yml
vendored
42
.github/workflows/ncc.yml
vendored
|
@ -1,42 +0,0 @@
|
||||||
name: ncc
|
|
||||||
|
|
||||||
on:
|
|
||||||
repository_dispatch:
|
|
||||||
types:
|
|
||||||
- ncc
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
- releases/v*
|
|
||||||
paths-ignore:
|
|
||||||
- '**.md'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
ncc:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
-
|
|
||||||
name: Build
|
|
||||||
run: |
|
|
||||||
npm install
|
|
||||||
npm run format
|
|
||||||
npm run build
|
|
||||||
-
|
|
||||||
name: Set up Git
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
git config user.name GitHub
|
|
||||||
git config user.email noreply@github.com
|
|
||||||
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
|
|
||||||
-
|
|
||||||
name: Commit and push changes
|
|
||||||
run: |
|
|
||||||
git add .
|
|
||||||
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
|
|
||||||
git commit --author "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" --message "Update generated content"
|
|
||||||
git push
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user