File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -42,19 +42,13 @@ jobs:
4242
4343 runs-on : ${{ matrix.os }}
4444
45+ # Skip entire job if platform doesn't match (workflow_dispatch only)
46+ if : |
47+ github.event_name == 'push' ||
48+ github.event.inputs.platform == 'all' ||
49+ github.event.inputs.platform == matrix.name
50+
4551 steps :
46- - name : Check platform filter
47- id : filter
48- shell : bash
49- run : |
50- if [[ "${{ github.event_name }}" == "push" ]] || \
51- [[ "${{ github.event.inputs.platform }}" == "all" ]] || \
52- [[ "${{ github.event.inputs.platform }}" == "${{ matrix.name }}" ]]; then
53- echo "skip=false" >> $GITHUB_OUTPUT
54- else
55- echo "skip=true" >> $GITHUB_OUTPUT
56- fi
57-
5852 - name : Checkout
5953 if : steps.filter.outputs.skip == 'false'
6054 uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments