Skip to content

Commit

Permalink
Branch sync - only sync when there is a difference to avoid errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Aug 4, 2020
1 parent 0ac46c2 commit a38cb3b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/covsync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ jobs:
with:
fetch-depth: 0
- run: |
git checkout -b coverity-fixes origin/fixes
git push origin coverity-fixes
git checkout -b coverity-develop origin/develop
git push origin coverity-develop
git diff --exit-code -s origin/coverity-fixes origin/fixes
if [ "$?" = "1" ]; then
git checkout -b coverity-fixes origin/fixes
git push origin coverity-fixes
fi
git diff --exit-code -s origin/coverity-develop origin/develop
if [ "$?" = "1" ]; then
git checkout -b coverity-develop origin/develop
git push origin coverity-develop
fi

0 comments on commit a38cb3b

Please sign in to comment.