File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed
Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 2222 with :
2323 token : ${{ secrets.GITHUB_TOKEN }}
2424 # target-branch: ${{ github.ref_name }}
25- release-type : simple
25+ release-type : simple
26+ # -----#
27+ - uses : actions/checkout@v4
28+ - name : print vars
29+ run : |
30+ echo "steps.release.outputs.major - ${{ steps.release.outputs.major }}"
31+ echo "steps.release.outputs.minor - ${{ steps.release.outputs.minor }}"
32+ echo "steps.release.outputs.minor - ${{ steps.release.outputs.release_created }}" || true
33+ - name : tag major and minor versions
34+ if : ${{ steps.release.outputs.release_created }}
35+ run : |
36+ git config user.name github-actions[bot]
37+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
38+
39+ git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
40+
41+ git tag -d v${{ steps.release.outputs.major }} || true
42+ git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
43+
44+ git push origin :v${{ steps.release.outputs.major }} || true
45+ git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
46+
47+ git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
48+ git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
49+
50+ git push origin v${{ steps.release.outputs.major }}
51+ git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
You can’t perform that action at this time.
0 commit comments