Skip to content

Commit

Permalink
Delete temp branch
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisInSky committed Nov 5, 2024
1 parent a44c375 commit 72f62a2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
- name: Commit Changes
run: |
RC_BRANCH="rc/rs/v${{ steps.release_info.outputs.version }}"
R_TAG="rs/v${{ steps.release_info.outputs.version }}"
#git config --global user.name "${{ steps.release_info.outputs.author_name }}"
#git config --global user.email "${{ steps.release_info.outputs.author_email }}"
git config --global user.name "github-actions[bot]"
Expand All @@ -73,13 +74,14 @@ jobs:
git add Cargo.lock
git commit -m "build: update version to v${{ steps.release_info.outputs.version }}"
git push origin "$RC_BRANCH"
git tag rs/v${{ steps.release_info.outputs.version }}
git push origin rs/v${{ steps.release_info.outputs.version }}
git tag "$R_TAG"
git push origin "$R_TAG"
git push --delete origin "${GITHUB_REF#refs/tags/}"
git checkout main
git merge --squash "$RC_BRANCH"
git commit -m "chore: sync release v${{ steps.release_info.outputs.version }}"
git push origin main
#git checkout main
#git merge --squash "$RC_BRANCH"
#git commit -m "chore: sync release v${{ steps.release_info.outputs.version }}"
#git push origin main
git checkout "$R_TAG"
git branch -d "$RC_BRANCH"
git push origin --delete "$RC_BRANCH"
env:
Expand Down

0 comments on commit 72f62a2

Please sign in to comment.