Change where workflow is skipped

This commit is contained in:
Sirz Benjie 2025-05-01 21:29:12 -05:00
parent 878c44db0b
commit 7f570a2004
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E
2 changed files with 6 additions and 1 deletions

View File

@ -12,11 +12,16 @@ on:
totalShards:
required: true
type: number
skip:
required: true
type: boolean
default: false
jobs:
test:
name: Shard ${{ inputs.shard }} of ${{ inputs.totalShards }}
runs-on: ubuntu-latest
if: ${{ inputs.skip == 'false' }}
steps:
- name: Check out Git repository
uses: actions/checkout@v4.2.2

View File

@ -31,7 +31,6 @@ jobs:
run-tests:
name: Run Tests
needs: check-path-change-filter
if: ${{ needs.changes.outputs.all == 'true'}}
strategy:
matrix:
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
@ -40,3 +39,4 @@ jobs:
project: main
shard: ${{ matrix.shard }}
totalShards: 10
skip: ${{ needs.check-path-change-filter.outputs.all == 'false'}}