Skip to content

Commit 3cb0376

Browse files
committed
Fix json check
1 parent 9479bb8 commit 3cb0376

2 files changed

Lines changed: 18 additions & 8 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/jsoncheck.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,33 @@ jobs:
1111
test:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
15-
- name: json-syntax-check
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Check JSON syntax
1618
uses: limitusus/json-syntax-check@v1
1719
with:
1820
pattern: "\\.json$"
19-
- if: success()
20-
name: update success status
21+
22+
- name: Update success status
23+
if: success()
2124
run : |
2225
gh api \
2326
--method POST \
2427
-H "Accept: application/vnd.github+json" \
25-
/repos/PokemonAutomation/ServerConfigs-PA-SHA/statuses/${{ github.sha }} \
28+
/repos/${{ github.repository }}/statuses/${{ github.sha }} \
2629
-f state='success' \
2730
-f context='json' \
2831
env:
2932
GH_TOKEN: ${{ github.token }}
30-
- if: failure()
31-
name: update failed status
33+
34+
- name: update failed status
35+
if: failure()
3236
run : |
3337
gh api \
3438
--method POST \
3539
-H "Accept: application/vnd.github+json" \
36-
/repos/PokemonAutomation/ServerConfigs-PA-SHA/statuses/${{ github.sha }} \
40+
/repos/${{ github.repository }}/statuses/${{ github.sha }} \
3741
-f state='failure' \
3842
-f context='json' \
3943
env:

0 commit comments

Comments
 (0)