Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI release: uniformly check 'github.ref' for 'refs/tags/v'
Browse files Browse the repository at this point in the history
andreasabel committed Nov 20, 2023
1 parent 74f74b7 commit c4c1aee
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ on:
jobs:
release:
name: Create Github Release
if: contains(github.ref, 'tags/v')
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:

2 changes: 1 addition & 1 deletion .github/workflows/test-linux.yaml
Original file line number Diff line number Diff line change
@@ -141,7 +141,7 @@ jobs:
# release (optional)

- name: 🚢 Release Artifacts
if: startsWith(github.ref, 'refs/tags/') # so that only commits with a git tag would upload artifacts
if: startsWith(github.ref, 'refs/tags/v') # so that only commits with a git tag would upload artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
2 changes: 1 addition & 1 deletion .github/workflows/test-mac.yaml
Original file line number Diff line number Diff line change
@@ -207,7 +207,7 @@ jobs:
mv zip/als-macos.zip .
- name: 🚢 Release Artifacts
if: startsWith(github.ref, 'refs/tags/') # so that only commits with a git tag would upload artifacts
if: startsWith(github.ref, 'refs/tags/v') # so that only commits with a git tag would upload artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
2 changes: 1 addition & 1 deletion .github/workflows/test-windows.yaml
Original file line number Diff line number Diff line change
@@ -138,7 +138,7 @@ jobs:
mv zip/als-windows.zip .
- name: 🚢 Release Artifacts
if: startsWith(github.ref, 'refs/tags/') # so that only commits with a git tag would upload artifacts
if: startsWith(github.ref, 'refs/tags/v') # so that only commits with a git tag would upload artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |

0 comments on commit c4c1aee

Please sign in to comment.