Merge pull request #37 from oncokb/dependabot/npm_and_yarn/fast-xml-p… #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update dist folder after making changes | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install node.js packages | |
run: npm install | |
- name: Package application | |
run: gulp build | |
- name: 'Update dist folder' | |
run: | | |
CHANGED=$(git diff --name-only HEAD --) | |
if [ -n "$CHANGED" ] | |
then | |
git config user.name oncokb-bot | |
git config user.email dev@oncokb.org | |
git add . | |
git commit -m 'Update dist folder' | |
git push | |
fi |