-
Notifications
You must be signed in to change notification settings - Fork 55
34 lines (33 loc) · 1.01 KB
/
links-checker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: MAAS Docs link checker
on:
schedule:
- cron: "0 05 * * 1-5" # At 05:00 every day-of-week from Monday through Friday.
push:
branches:
- fix-docs-links-* # Branches that start with fix-docs-links-
jobs:
docs:
name: maas.io/docs links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install dependencies
run: yarn
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run docs links checks
run: yarn test-docs-links
- name: Create issue on failure
if: failure()
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
RUN_ID: ${{ github.run_id }}
WORKFLOW: ${{ github.workflow }}
with:
filename: .github/ISSUE_TEMPLATE/ci-failure.md
update_existing: true