Skip to content

Commit 215a979

Browse files
committed
Use environment variable instead.
1 parent 2dbec59 commit 215a979

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,18 @@ jobs:
8181
8282
- name: Set release number
8383
shell: bash
84-
run: echo "release=$(date +'%Y.%m.%d.%H%M')" >> $GITHUB_ENV
84+
run: echo "RELEASE=$(date +'%Y.%m.%d.%H%M')" >> $GITHUB_ENV
8585

8686
- name: Create and push tag
8787
shell: bash
8888
run: |
8989
git config user.name "github-actions[bot]"
9090
git config user.email "github-actions[bot]@users.noreply.github.com"
91-
git tag $release
92-
git push origin $release
91+
git tag $RELEASE
92+
git push origin $RELEASE
9393
9494
- name: Publish release
9595
shell: cmd
9696
env:
9797
GH_TOKEN: ${{github.token}}
98-
run: gh release create ${{env.release}} --title "Release ${{env.release}}" ${{github.workspace}}\Artifacts\Configure.Release.x64.exe ${{github.workspace}}\Artifacts\Configure.Release.arm64.exe ${{github.workspace}}\Artifacts\Configure.Release.x86.exe ${{github.workspace}}\files.zip
98+
run: gh release create "%RELEASE%" --title "Release %RELEASE%" ${{github.workspace}}\Artifacts\Configure.Release.x64.exe ${{github.workspace}}\Artifacts\Configure.Release.arm64.exe ${{github.workspace}}\Artifacts\Configure.Release.x86.exe ${{github.workspace}}\files.zip

0 commit comments

Comments
 (0)