Use github-push-action for simplifying push

This commit is contained in:
Eric Schultz 2020-12-15 15:52:14 -06:00 committed by Eric Schultz
parent 04564daa6d
commit ccd2f58462
2 changed files with 12 additions and 4 deletions

View file

@ -36,9 +36,13 @@ jobs:
- run: yarn install --frozen-lockfile
- name: rebuild NOTICE-js
run: yarn notice:js -u
- name: commit and push to branch
- name: commit to branch
run: |
git config --global user.name 'Houdini NOTICE-js worker'
git config --global user.email 'wwahammy@users.noreply.github.com'
git commit -am "Updated NOTICE-js (Houdini NOTICE-js worker)"
git push
- name: Push changes
uses: ad-m/github-push-action
with:
github_token: ${{ secrets.NOTICE_WORKER_PAT }}
branch: ${{ github.ref }}

View file

@ -37,9 +37,13 @@ jobs:
bundle install --jobs 4
- name: rebuild NOTICE-ruby
run: bin/rails notice:ruby:update
- name: commit and push to branch
- name: commit
run: |
git config --global user.name 'Houdini NOTICE-ruby worker'
git config --global user.email 'wwahammy@users.noreply.github.com'
git commit -am "Updated NOTICE-ruby (Houdini NOTICE-ruby worker)"
git push
- name: Push changes
uses: ad-m/github-push-action
with:
github_token: ${{ secrets.NOTICE_WORKER_PAT }}
branch: ${{ github.ref }}