31 lines
868 B
YAML
31 lines
868 B
YAML
name: Check Links
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "30 11 * * *"
|
|
jobs:
|
|
check:
|
|
strategy:
|
|
matrix:
|
|
branch: [main, 2.6, 2.5, 2.4, 2.3, 2.2, 2.1, 2.0, 1.3]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ matrix.branch }}
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: '3.0'
|
|
bundler-cache: true
|
|
- run: |
|
|
JEKYLL_FATAL_LINK_CHECKER=all bundle exec jekyll build --future
|
|
- name: Create Issue On Build Failure
|
|
if: ${{ failure() }}
|
|
uses: dblock/create-a-github-issue@v3
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
WORKFLOW_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
|
with:
|
|
update_existing: true
|
|
filename: .github/ISSUE_TEMPLATE/broken_links.md
|