Skip to content

Commit

Permalink
fix: release with also generate major version
Browse files Browse the repository at this point in the history
  • Loading branch information
adeherysh committed Jul 30, 2024
1 parent 97083c1 commit d27ccfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
uses: googleapis/release-please-action@v4
with:
release-type: simple
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}

- name: Checkout repository
if: ${{ steps.release.outputs.release_created }}
Expand All @@ -23,6 +22,9 @@ jobs:
- name: Create tag major version
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/googleapis/release-please-action.git"
git tag -d v${{ steps.release.outputs.major }} || true
git push origin :v${{ steps.release.outputs.major }} || true
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
Expand Down

0 comments on commit d27ccfc

Please sign in to comment.