File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,23 +30,19 @@ jobs:
3030 exit 1
3131
3232 - name : Checkout PR branch
33- if : steps.changes.outputs.other != 'true'
3433 uses : actions/checkout@v4
3534 with :
3635 ref : ${{ github.event.pull_request.head.sha }}
3736
3837 - name : Setup Node.js
39- if : steps.changes.outputs.other != 'true'
4038 uses : actions/setup-node@v4
4139 with :
4240 node-version : latest
4341
4442 - name : Install dependencies
45- if : steps.changes.outputs.other != 'true'
4643 run : npm ci
4744
4845 - name : Generate test IDs
49- if : steps.changes.outputs.other != 'true'
5046 run : |
5147 node scripts/generate-ids-for.js draft2020-12
5248 node scripts/generate-ids-for.js draft2019-09
5652 node scripts/generate-ids-for.js v1
5753
5854 - name : Commit and push
59- if : steps.changes.outputs.other != 'true'
6055 run : |
6156 git config user.name "test-id-bot"
6257 git config user.email "test-id-bot@users.noreply.github.com"
63-
64- git add $(find tests -name "*.json" ! -type l)
65-
58+ git add tests/
6659 git diff --cached --quiet || git commit -m "chore: auto-add missing test IDs"
67-
68- git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.event.pull_request.head.repo.full_name }}.git HEAD:refs/heads/${{ github.event.pull_request.head.ref }}
60+ git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.event.pull_request.head.repo.full_name }}.git HEAD:refs/heads/${{ github.event.pull_request.head.ref }}
You can’t perform that action at this time.
0 commit comments