Add ncc workflow

This commit is contained in:
CrazyMax 2020-05-13 23:39:15 +02:00
parent 277675f877
commit 1723202839
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
2 changed files with 34 additions and 1 deletions

View File

@ -4,7 +4,7 @@ on:
push:
branches:
- 'master'
- 'releases/'
- 'releases/*'
paths-ignore:
- '**.md'
pull_request:

33
.github/workflows/ncc.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: ncc
on:
push:
branches:
- 'master'
- 'releases/*'
paths-ignore:
- '**.md'
jobs:
fix:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Build
run: |
npm install
npm run format
npm run build
-
name: Raise PR
uses: peter-evans/create-pull-request@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "fix: update generated content"
title: "fix: update generated content"
branch: update-generated-content
branch-suffix: timestamp
labels: automerge