Skip to content

Commit

Permalink
git commit returns exit code 1 if no changes -- only call it if there…
Browse files Browse the repository at this point in the history
… are changes to commit
  • Loading branch information
dpark01 committed May 12, 2020
1 parent 2a5c703 commit 582ddc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion travis/github-viral-ngs-staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [ -z "$TRAVIS_PULL_REQUEST_BRANCH" ]; then
rm -rf *; cp -a ../pipes ../travis/github-staging/* .
../travis/dockstoreyml.sh pipes/WDL/flattened/*.wdl > .dockstore.yml
git add -A -f
git commit -q -m "CI push github.com/broadinstitute/viral-pipelines:$VERSION"
git diff-index --quiet HEAD || git commit -q -m "CI push github.com/broadinstitute/viral-pipelines:$VERSION"

git tag $VERSION
git push origin --tags
Expand Down

0 comments on commit 582ddc4

Please sign in to comment.