Skip to content

Commit 05a5488

Browse files
authored
Update blank.yml
1 parent 13803fa commit 05a5488

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/blank.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,20 @@ jobs:
2525
- name: Run a one-line script
2626
run: |
2727
echo ${{ github.ref }}
28+
set
2829
echo "Hello, world!" > foo.txt
2930
31+
- name: Extract tag name
32+
id: extract_tag_name
33+
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
34+
3035
- name: Create GitHub Release
3136
id: create_release
3237
uses: actions/create-release@v1
3338
env:
3439
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3540
with:
36-
tag_name: ${{ github.ref }}
37-
release_name: Release ${{ github.ref }}
41+
tag_name: ${{ env.TAG_NAME }}
42+
release_name: Release ${{ env.TAG_NAME }}
3843
draft: false
3944
prerelease: false

0 commit comments

Comments
 (0)