We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a301f7d commit bd31c71Copy full SHA for bd31c71
.github/workflows/make_release.yml
@@ -11,10 +11,13 @@ jobs:
11
steps:
12
- name: Checkout
13
uses: actions/checkout@v3
14
+
15
+ - name: Increment latest version number
16
+ run: gh release view --json tagName -q ".tagName" | awk -F. -v OFS=. '{$NF += 1 ; print}' > version.txt
17
+ env:
18
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19
20
- name: Add new Release
- run: >
- gh release create
- $(gh release view --json tagName -q ".tagName" | awk -F. -v OFS=. '{$NF += 1 ; print}')
- --notes "TTTTTTTTTTT"
21
+ run: gh release create $(cat version.txt)
22
env:
23
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments