We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fd9d3f commit dace1eeCopy full SHA for dace1ee
1 file changed
.github/workflows/build.yml
@@ -42,19 +42,13 @@ jobs:
42
43
runs-on: ${{ matrix.os }}
44
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
+
51
steps:
- - name: Check platform filter
- id: filter
- shell: bash
- run: |
- if [[ "${{ github.event_name }}" == "push" ]] || \
- [[ "${{ 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
-
58
- name: Checkout
59
if: steps.filter.outputs.skip == 'false'
60
uses: actions/checkout@v4
0 commit comments