docs links on anbox-cloud.io/docs #814
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: docs links on anbox-cloud.io/docs | |
on: | |
schedule: | |
- cron: "0 13 * * *" | |
jobs: | |
check-links: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v3 | |
- name: Install linkchecker | |
run: sudo pip install LinkChecker | |
- name: Write linkchecker config file | |
run: | | |
mkdir -p ~/.linkchecker | |
cp scripts/linkcheckerrc ~/.linkchecker/ | |
- name: Run linkchecker | |
continue-on-error: true | |
run: linkchecker https://anbox-cloud.io/docs > ~/.linkchecker/linkchecker-out.txt | |
- name: Parse linkchecker output | |
run: scripts/parseDocsLinkcheckerOutput | |
- name: Send message on failure | |
if: failure() | |
run: | | |
curl -X POST \ | |
-F "workflow=${GITHUB_WORKFLOW}" \ | |
-F "repo_name=${GITHUB_REPOSITORY}" \ | |
-F "action_id=${GITHUB_RUN_ID}" \ | |
${{ secrets.BOT_URL }}?room=docs |