Skip to content

Commit

Permalink
ci: ignore upstream branch deletion in sync job
Browse files Browse the repository at this point in the history
  • Loading branch information
josedev-union committed Jan 20, 2024
1 parent d8b4205 commit 019ad53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
latest_tag_commit=$(git ls-remote --tags --sort=committerdate tmp_upstream|egrep -iv 'helm|rc'|tail -1|awk '{print $1}')
echo "Pushing the latest tag commit as the origin SYNC_DEST_BRANCH"
git branch -D upstream
git branch -D upstream || echo "${{ env.SYNC_DEST_BRANCH }} branch deleted!"
git checkout -b ${{ env.SYNC_DEST_BRANCH }} ${latest_tag_commit}
git push origin ${{ env.SYNC_DEST_BRANCH }} --force
Expand Down

0 comments on commit 019ad53

Please sign in to comment.