Skip to content

Commit b92787f

Browse files
committed
Accept more status codes
1 parent 08cd190 commit b92787f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Diff for: .github/.linkspector.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"aliveStatusCodes": [
3+
200,
4+
201,
5+
204,
6+
302
7+
]
8+
}

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
npm install -g @umbrelladocs/linkspector
3838
echo "linkspector version: $(linkspector --version)"
3939
echo "changed files: ${{ steps.changed-files.outputs.changed_files }}"
40-
jq '{"files": $ARGS.positional}' --null-input --args ${{ steps.changed-files.outputs.changed_files }} > .linkspector.yml
40+
cat .github/.linkspector.json | jq '.files=$ARGS.positional' ${{ steps.changed-files.outputs.changed_files }} > .linkspector.yml
4141
linkspector check --config .linkspector.yml
4242
- name: Install Zola
4343
run: |

0 commit comments

Comments
 (0)