@@ -15,13 +15,32 @@ jobs:
15
15
steps :
16
16
- name : Release
17
17
id : release
18
- uses : google-github-actions /release-please-action@e4dc86ba9405554aeba3c6bb2d169500e7d3b4ee # v4.1.1
18
+ uses : googleapis /release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3
19
19
20
- - uses : actions/checkout@v3
20
+ - uses : actions/checkout@v4
21
21
if : ${{ steps.release.outputs.release_created }}
22
22
23
+ - name : tag major and minor versions
24
+ if : ${{ steps.release.outputs.release_created }}
25
+ run : |
26
+ # setup github actions bot as author
27
+ git config user.name github-actions[bot]
28
+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
29
+
30
+ # removing previous tags
31
+ git tag -d v${{ steps.release.outputs.major }} || true
32
+ git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
33
+ git push origin :v${{ steps.release.outputs.major }} || true
34
+ git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
35
+
36
+ # creating new tags
37
+ git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
38
+ git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
39
+ git push origin v${{ steps.release.outputs.major }}
40
+ git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
41
+
23
42
- name : Set up Python
24
- uses : actions/setup-python@v3
43
+ uses : actions/setup-python@v5
25
44
if : ${{ steps.release.outputs.release_created }}
26
45
with :
27
46
python-version : ' 3.x'
0 commit comments