Skip to content

Commit 2c6102d

Browse files
committed
fix GITHUB_TOKEN
1 parent 18e240b commit 2c6102d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/macos-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
run: |
1818
# https://stackoverflow.com/questions/4916492/git-describe-fails-with-fatal-no-names-found-cannot-describe-anything
1919
# 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
20+
git describe --tags --always | awk -F - '{printf "RELEASE_VERSION=V1.0-%s",$NF}'
2121
cat constants.env
2222
- name: Export Env
2323
uses: cardinalby/export-env-action@v2
@@ -37,7 +37,7 @@ jobs:
3737
id: create_release
3838
uses: actions/create-release@v1
3939
env:
40-
GITHUB_TOKEN: $RELEASE_VERSION
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
with:
4242
tag_name: $RELEASE_VERSION
4343
release_name: Release $RELEASE_VERSION

0 commit comments

Comments
 (0)