Skip to content

MAAS Docs link checker #734

MAAS Docs link checker

MAAS Docs link checker #734

Workflow file for this run

name: MAAS Docs link checker
on:
schedule:
- cron: "0 14 * * 1-5" # At 14:00 every day-of-week from Monday through Friday.
push:
branches:
- main
- "3.5"
jobs:
docs:
name: maas.io/docs links
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@main
- name: Get branch name
uses: nelonoel/[email protected]
- name: Run Cypress docs tests
uses: cypress-io/github-action@v4
with:
browser: chrome
config: baseUrl=http://maas.io/docs
spec: "cypress/e2e/docs-links/**/*.spec.ts"
install-command: yarn install
- 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