Skip to content

Commit

Permalink
Make build commit conditional on changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Galadirith committed Oct 7, 2020
1 parent 79d3ada commit 99c3940
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- 'src/**'
- 'package.json'
- 'package-lock.json'
- 'lib/**'
- 'lib/**'
jobs:
build:
runs-on: ubuntu-18.04
Expand All @@ -27,5 +27,6 @@ jobs:
git config user.name aframe-physics-system
git config user.email aframe-physics-system@github.com
git add dist
git commit -m "Update built distributions"
git update-index --refresh
git diff-index --quiet HEAD dist || git commit -m "Update built distributions"
git push

0 comments on commit 99c3940

Please sign in to comment.