mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-21 07:13:46 +08:00
Branch sync - only sync when there is a difference to avoid errors.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user