Skip to content

Commit ba7aa74

Browse files
committed
ft: retry deploy with pull and push
1 parent 9aca68f commit ba7aa74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ jobs:
4949
git commit -S -am "[${ENV%-*}] ${{ github.event.repository.name }}: deploy $TAG"$'\n\n'"$(
5050
echo "Triggered by ${{ github.event.repository.url }}/actions/runs/${{ github.run_id }}")"$'\n\n'"$(
5151
echo "Co-authored-by: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>")"
52-
git push origin HEAD
52+
git push origin HEAD || { git pull --rebase origin HEAD && git push origin HEAD }
5353
echo "Deployed $TAG with commit https://github.com/${{ github.repository_owner }}/kyber-applications/commit/$(git rev-parse --short HEAD)" >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)