gpg/.github/workflows/ncc.yml

43 lines
1 KiB
YAML
Raw Normal View History

2020-05-13 22:07:13 -04:00
name: ncc
2020-05-03 15:09:41 -04:00
on:
2020-05-13 22:07:13 -04:00
repository_dispatch:
types:
2020-05-23 19:14:15 -04:00
- ncc
2020-05-03 15:09:41 -04:00
push:
branches:
2020-05-23 19:14:15 -04:00
- master
- releases/v*
2020-05-07 14:57:28 -04:00
paths-ignore:
- '**.md'
2020-05-03 15:09:41 -04:00
jobs:
2020-05-13 22:07:13 -04:00
ncc:
2020-05-03 15:09:41 -04:00
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Build
run: |
npm install
2020-05-13 08:29:39 -04:00
npm run format
2020-05-03 15:09:41 -04:00
npm run build
-
name: Set up Git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
2020-05-13 08:24:09 -04:00
git config user.name GitHub
git config user.email noreply@github.com
2020-05-03 15:09:41 -04:00
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
2020-05-13 22:07:13 -04:00
-
name: Commit and push changes
2020-05-03 15:09:41 -04:00
run: |
git add .
if output=$(git status --porcelain) && [ ! -z "$output" ]; then
2020-05-13 08:24:09 -04:00
git commit --author "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" --message "Update generated content"
2020-05-03 15:09:41 -04:00
git push
fi