Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/validate-job-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "develop" branch
pull_request:
pull_request_target:
branches: ["develop"]
paths:
- 'public/data/job-openings-data.json'
Expand All @@ -21,14 +21,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# Must checkout the PR’s code, not base branch
ref: ${{ github.event.pull_request.head.sha }}

- name: json-yaml-validate
id: json-yaml-validate
uses: GrantBirki/json-yaml-validate@v3.2.1 # replace with the latest version
uses: GrantBirki/json-yaml-validate@v3.2.1
with:
comment: "true" # enable comment mode
comment: "true"
json_schema: public/data/schema/job-openings-schema.json
files: |
public/data/job-openings-data.json
use_gitignore: false
ajv_strict_mode: false
ajv_strict_mode: false