File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 3
3
pull_request :
4
4
branches :
5
5
- main
6
- - LinkChecker
6
+ - find_linkcheckerrc
7
7
push :
8
8
branches :
9
9
- main
10
- - LinkChecker
10
+ - find_linkcheckerrc
11
11
schedule :
12
12
# run every Sunday at 00:00 UTC
13
13
- cron : ' 0 0 * * 0'
23
23
pip3 install --upgrade pip
24
24
pip3 install linkchecker==10.2.1
25
25
pip3 install requests
26
+ - name : search for linkcheckerrc file
27
+ id : find-file
28
+ run : |
29
+ file_path=$(find /home/runner/.local/lib/python3.* -name linkcheckerrc)
30
+ echo "linkcheckerrc located here: $file_path"
31
+ echo "file_path=$file_path" >> $GITHUB_OUTPUT
26
32
- name : amend linkcheckerrc to ignore 403 errors
27
33
run : |
28
- sed -i '/#ignoreerrors=/a ignoreerrors=\n ^http* ^403 Forbidden\n ^http* ^418 Unknown Code' /home/runner/.local/lib/python3.10/site-packages/linkcheck/data/linkcheckerrc
34
+ sed -i '/#ignoreerrors=/a ignoreerrors=\n ^http* ^403 Forbidden\n ^http* ^418 Unknown Code' $(echo ${{ steps.find-file.outputs.file_path }})
29
35
- name : run linkchecker
30
36
run : |
31
37
cd $GITHUB_WORKSPACE/
You can’t perform that action at this time.
0 commit comments