Skip to content

Commit

Permalink
ci(release): prevent deleting commits (#3356) (#3360)
Browse files Browse the repository at this point in the history
This can happen if commits are added to the release branch while an RC
is being created.

(cherry picked from commit 2810f6c)

Co-authored-by: Ev <[email protected]>
  • Loading branch information
github-actions[bot] and ev-codes authored Sep 26, 2024
1 parent 6148cca commit bce647f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/RELEASE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ jobs:
- name: Commit and tag
run: |
git commit -am "ci: release version ${RELEASE_VERSION}"
git push --force origin ${RELEASE_BRANCH}
git push --force-with-lease origin ${RELEASE_BRANCH}
git tag -fa ${RELEASE_VERSION} -m "ci: release version ${RELEASE_VERSION}"
git push --force origin ${RELEASE_VERSION}
git push --force-with-lease origin ${RELEASE_VERSION}
env:
RELEASE_VERSION: ${{ github.event.release.tag_name }}
Expand Down

0 comments on commit bce647f

Please sign in to comment.