File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 55# Controls when the workflow will run
66on :
77 # Triggers the workflow on push or pull request events but only for the "develop" branch
8- pull_request :
8+ pull_request_target :
99 branches : ["develop"]
1010 paths :
1111 - ' public/data/job-openings-data.json'
@@ -21,14 +21,17 @@ jobs:
2121 runs-on : ubuntu-latest
2222 steps :
2323 - uses : actions/checkout@v4
24+ with :
25+ # Must checkout the PR’s code, not base branch
26+ ref : ${{ github.event.pull_request.head.sha }}
2427
2528 - name : json-yaml-validate
2629 id : json-yaml-validate
27- uses : GrantBirki/json-yaml-validate@v3.2.1 # replace with the latest version
30+ uses : GrantBirki/json-yaml-validate@v3.2.1
2831 with :
29- comment : " true" # enable comment mode
32+ comment : " true"
3033 json_schema : public/data/schema/job-openings-schema.json
3134 files : |
3235 public/data/job-openings-data.json
3336 use_gitignore : false
34- ajv_strict_mode : false
37+ ajv_strict_mode : false
You can’t perform that action at this time.
0 commit comments