Skip to content

Commit

Permalink
chore(CI): integrate retry ignore obs rebuild when package source not…
Browse files Browse the repository at this point in the history
… changed
  • Loading branch information
hudeng-go committed Mar 5, 2024
1 parent 90ff3f1 commit d439af6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/02-build-obs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
pkgname: ${{ steps.pkgname.outputs.pkgname }}
tagsha: ${{ steps.tagsha.outputs.tagsha }}
targeturl: ${{ steps.build.outputs.targeturl }}
needbuild: ${{ steps.build.outputs.needbuild }}
steps:
- name: Print Environment
run: export
Expand Down Expand Up @@ -154,16 +155,13 @@ jobs:
curl -o _branch_request https://raw.githubusercontent.com/deepin-community/Repository-Integration/master/.github/workflows/obs-br.tpl
sed -i "s#REPO#$REPO#g" _branch_request
sed -i "s#TAGSHA#$TAGSHA#g" _branch_request
osc add _branch_request && osc ci -m "update tag release: $TAGSHA"
osc add _branch_request && osc ci -m "Update tag release: $TAGSHA"
else
echo "Trigger Rebuilding"
if [ "$COMPONENT" = "main" ]; then
osc rebuild deepin:CI:TestingIntegration:${TOPIC} ${pkgname}
else
osc rebuild deepin:CI:TestingIntegration:${TOPIC}:${COMPONENT} ${pkgname}
fi
echo "$REPO source unchanged, skip!!!"
fi
echo "needbuild=$needbuild" >> $GITHUB_OUTPUT
log:
needs: build
strategy:
Expand All @@ -175,6 +173,7 @@ jobs:
ARCH: ${{ matrix.arch }}
steps:
- name: Set commit status as pending
if: ${{ needs.build.outputs.needbuild }} == "true"
uses: myrotvorets/set-commit-status-action@master
with:
token: ${{ github.token }}
Expand Down

0 comments on commit d439af6

Please sign in to comment.