Skip to content

Commit

Permalink
ci: upgrade JSON syntax check workflow dependencies
Browse files Browse the repository at this point in the history
- Update paths-ignore syntax to use double quotes
- Upgrade actions/checkout from v2 to v4
- Add step to remove AutoGenerator directory
- Upgrade json-syntax-check from v1 to v2.0.2

Signed-off-by: 陳鈞 <[email protected]>
  • Loading branch information
jim60105 committed Oct 20, 2024
1 parent fecc47f commit aa41b63
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/JsonSyntaxCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ name: JSON Syntax Check
on:
pull_request:
paths-ignore:
- 'AutoGenerator/**'
- "AutoGenerator/**"

jobs:
json-syntax-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Remove AutoGenerator
run: rm -rf AutoGenerator

- name: json-syntax-check
uses: limitusus/json-syntax-check@v1
env:
BASE: ${{ github.head_ref || github.ref_name }}
uses: limitusus/[email protected]
with:
pattern: "\\.jsonc$"

0 comments on commit aa41b63

Please sign in to comment.