Publish wiki and check for broken links #2
Workflow file for this run
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: check for broken links | |
'on': | |
push: | |
paths: | |
- '**/*.md' | |
- 'wiki/**' | |
pull_request: | |
types: [ opened, synchronize ] | |
branches: [ main ] | |
workflow_dispatch: | |
schedule: | |
# every monday at night | |
- cron: '0 1 * * 1' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check the README for broken links | |
uses: Wandalen/[email protected] | |
with: | |
action: becheran/[email protected] | |
with: | | |
args: README.md | |
attempt_limit: 3 | |
attempt_delay: 2000 | |
- name: Check the Wiki pages for broken links | |
uses: Wandalen/[email protected] | |
if: ${{ always() && !failure() }} | |
with: | |
action: becheran/[email protected] | |
with: | | |
args: wiki/ | |
attempt_limit: 3 | |
attempt_delay: 2000 | |
- name: Publish the Wiki | |
uses: SwiftDocOrg/github-wiki-publish-action@v1 | |
# we do not need to republish if nothing changes | |
if: ${{ github.event_name != 'schedule' }} | |
with: | |
path: "wiki/" | |
env: | |
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_DEPLOY_WIKI }} |