Skip to content

Commit

Permalink
fix release ci workflow (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-descope authored Apr 17, 2024
1 parent 2d27c9c commit a92cc32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish-gem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ jobs:
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git add lib/descope/version.rb
git commit -am "Bump version to $NEW_VERSION"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Repoint the tag to latest commit
run: |
git tag -fa ${{ github.event.release.tag_name }} -m "Release $NEW_VERSION"
git tag -d ${{ github.event.release.tag_name }}
git tag ${{ github.event.release.tag_name }} -m "Release $NEW_VERSION"
git push origin :${{ github.event.release.tag_name }}
git push
env:
Expand Down

0 comments on commit a92cc32

Please sign in to comment.