Skip to content

Commit c477f74

Browse files
committed
better ci conditional
1 parent e6be3de commit c477f74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: create release
3131
id: create_release
32-
if: ${{ github.ref == 'v*' }}
32+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
3333
uses: actions/create-release@v1
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: upload release asset
4343
id: upload-release-asset
44-
if: ${{ github.ref == 'v*' }}
44+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
4545
uses: actions/upload-release-asset@v1
4646
env:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)