Skip to content

Commit 71ef309

Browse files
committed
fix sha addition on tags on other jobs
1 parent b6eab36 commit 71ef309

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
@@ -33,7 +33,7 @@ jobs:
3333
with:
3434
python-version: ${{ matrix.python-version }}
3535
- name: Append build hash if not a tagged commit
36-
if: github.ref != 'refs/tags/*'
36+
if: startsWith(github.ref, 'refs/tags/v') != true
3737
run: echo '::set-env name=BUILD_COMMIT_HASH::${{github.sha}}'
3838
- name: Install dependencies
3939
run: |
@@ -110,7 +110,7 @@ jobs:
110110
- name: Create folder structure
111111
run: mkdir -p wheelhouse/audited/
112112
- name: Append build hash if not a tagged commit
113-
if: github.ref != 'refs/tags/*'
113+
if: startsWith(github.ref, 'refs/tags/v') != true
114114
run: echo '::set-env name=BUILD_COMMIT_HASH::${{github.sha}}'
115115
- name: Building a source distribution
116116
run: |

0 commit comments

Comments
 (0)