Skip to content

Commit 89c3be6

Browse files
authored
Update filter for tag builds (#929)
Looks like if a tag filter is provided to GitHub Actions then when tags are pushed as a group if any tag doesn't match the filter then CI doesn't run at all. This means that the mass-push of tags for crates in this repo accidentally don't run CI to build the release binaries for the tag of `wasm-tools` itself. This commit fixes the issue by updating the conditions for the `build.yml` workflow. This always runs on all tags now but the only job will be skipped unless it's a `wasm-tools` tag.
1 parent 902e289 commit 89c3be6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: Build
22
on:
33
push:
4-
branches:
5-
- main
64
tags:
7-
- 'wasm-tools-*'
85
pull_request:
96
branches:
107
- main
@@ -24,6 +21,7 @@ jobs:
2421
build:
2522
name: Build wasm-tools
2623
runs-on: ${{ matrix.os }}
24+
if: github.event_name != 'push' || startsWith(github.ref, 'refs/tags/wasm-tools-')
2725
strategy:
2826
matrix:
2927
include:

0 commit comments

Comments
 (0)