Skip to content

Commit db70c2c

Browse files
committed
removed the not needed second test file filter
1 parent 323a738 commit db70c2c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/apply-test-ids.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,34 @@ jobs:
1919
id: changes
2020
with:
2121
filters: |
22-
tests:
23-
- 'tests/**/*.json'
2422
other:
2523
- '!tests/**/*.json'
2624
2725
- name: Block mixed changes
28-
if: steps.changes.outputs.tests == 'true' && steps.changes.outputs.other == 'true'
26+
if: steps.changes.outputs.other == 'true'
2927
run: |
3028
echo "Tests and other files were changed together."
3129
echo "Please submit test JSON changes separately."
3230
exit 1
3331
3432
- name: Checkout PR branch
35-
if: steps.changes.outputs.tests == 'true'
33+
if: steps.changes.outputs.other != 'true'
3634
uses: actions/checkout@v4
3735
with:
3836
ref: ${{ github.event.pull_request.head.sha }}
3937

4038
- name: Setup Node.js
41-
if: steps.changes.outputs.tests == 'true'
39+
if: steps.changes.outputs.other != 'true'
4240
uses: actions/setup-node@v4
4341
with:
4442
node-version: 20
4543

4644
- name: Install dependencies
47-
if: steps.changes.outputs.tests == 'true'
45+
if: steps.changes.outputs.other != 'true'
4846
run: npm ci
4947

5048
- name: Generate test IDs
51-
if: steps.changes.outputs.tests == 'true'
49+
if: steps.changes.outputs.other != 'true'
5250
run: |
5351
node scripts/generate-ids-for.js draft2020-12
5452
node scripts/generate-ids-for.js draft2019-09
@@ -58,7 +56,7 @@ jobs:
5856
node scripts/generate-ids-for.js v1
5957
6058
- name: Commit and push
61-
if: steps.changes.outputs.tests == 'true'
59+
if: steps.changes.outputs.other != 'true'
6260
run: |
6361
git config user.name "test-id-bot"
6462
git config user.email "test-id-bot@users.noreply.github.com"

0 commit comments

Comments
 (0)