We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18e240b commit 2c6102dCopy full SHA for 2c6102d
1 file changed
.github/workflows/macos-release.yml
@@ -17,7 +17,7 @@ jobs:
17
run: |
18
# https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything
19
# git describe --tags --always | awk -F . '{printf "RELEASE_VERSION=%s.%d",$1,$2+1}' | xargs echo > constants.env
20
- git describe --tags --always | awk '{printf "RELEASE_VERSION=%s",$0}' | xargs echo > constants.env
+ git describe --tags --always | awk -F - '{printf "RELEASE_VERSION=V1.0-%s",$NF}'
21
cat constants.env
22
- name: Export Env
23
uses: cardinalby/export-env-action@v2
@@ -37,7 +37,7 @@ jobs:
37
id: create_release
38
uses: actions/create-release@v1
39
env:
40
- GITHUB_TOKEN: $RELEASE_VERSION
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41
with:
42
tag_name: $RELEASE_VERSION
43
release_name: Release $RELEASE_VERSION
0 commit comments