gpg/.github/workflows/master.yml

38 lines
965 B
YAML
Raw Normal View History

2020-05-03 15:09:41 -04:00
name: master
on:
push:
branches:
2020-05-07 14:57:28 -04:00
- 'master'
paths-ignore:
- '**.md'
2020-05-03 15:09:41 -04:00
jobs:
prune:
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 08:24:09 -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