Skip to content

Commit 82a2e2b

Browse files
authored
Remove status update steps from JSON check workflow (#257)
1 parent 2642377 commit 82a2e2b

File tree

1 file changed

+2
-26
lines changed

1 file changed

+2
-26
lines changed

.github/workflows/jsoncheck.yml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v6
1616

1717
- name: Check JSON syntax
18-
uses: limitusus/json-syntax-check@v1
18+
uses: limitusus/json-syntax-check@v2
1919
with:
2020
pattern: "\\.json$"
21-
22-
- name: Update success status
23-
if: success()
24-
run : |
25-
gh api \
26-
--method POST \
27-
-H "Accept: application/vnd.github+json" \
28-
/repos/${{ github.repository }}/statuses/${{ github.sha }} \
29-
-f state='success' \
30-
-f context='json' \
31-
env:
32-
GH_TOKEN: ${{ github.token }}
33-
34-
- name: Update failed status
35-
if: failure()
36-
run : |
37-
gh api \
38-
--method POST \
39-
-H "Accept: application/vnd.github+json" \
40-
/repos/${{ github.repository }}/statuses/${{ github.sha }} \
41-
-f state='failure' \
42-
-f context='json' \
43-
env:
44-
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)