Scan Help Center Broken Links #102
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: 'Scan Help Center Broken Links' | |
on: | |
schedule: | |
- cron: 0 6 * * 1 # every monday at 14:00pm UTC+8:00 | |
workflow_dispatch: | |
jobs: | |
linkinator: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Scan links | |
id: scan-links | |
uses: JustinBeckwith/linkinator-action@v1 | |
with: | |
paths: "https://help.vika.cn, https://help.apitable.com" | |
config: .github/hc-linkinator.config.json | |
- name: Create new issue as bug report | |
if: ${{ failure() }} | |
uses: JasonEtco/create-an-issue@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SUMMARY_LINK: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
with: | |
filename: .github/hc-broken-link-issue-template.md |