Skip to content

Commit 6637b17

Browse files
committed
CI release: uniformly check 'github.ref' for 'refs/tags/v'
1 parent 5e1ec30 commit 6637b17

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
release:
1010
name: Create Github Release
11-
if: contains(github.ref, 'tags/v')
11+
if: startsWith(github.ref, 'refs/tags/v')
1212
runs-on: ubuntu-latest
1313
steps:
1414

.github/workflows/test-linux.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
mv zip/als-ubuntu.zip .
116116
117117
- name: 🚢 Release Artifacts
118-
if: startsWith(github.ref, 'refs/tags/') # so that only commits with a git tag would upload artifacts
118+
if: startsWith(github.ref, 'refs/tags/v') # so that only commits with a git tag would upload artifacts
119119
env:
120120
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121121
run: |

.github/workflows/test-mac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ jobs:
206206
mv zip/als-macos.zip .
207207
208208
- name: 🚢 Release Artifacts
209-
if: startsWith(github.ref, 'refs/tags/') # so that only commits with a git tag would upload artifacts
209+
if: startsWith(github.ref, 'refs/tags/v') # so that only commits with a git tag would upload artifacts
210210
env:
211211
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
212212
run: |

.github/workflows/test-windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
mv zip/als-windows.zip .
141141
142142
- name: 🚢 Release Artifacts
143-
if: startsWith(github.ref, 'refs/tags/') # so that only commits with a git tag would upload artifacts
143+
if: startsWith(github.ref, 'refs/tags/v') # so that only commits with a git tag would upload artifacts
144144
env:
145145
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
146146
run: |

0 commit comments

Comments
 (0)