forked from opensearch-project/documentation-website
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (26 loc) · 812 Bytes
/
Copy pathlink-checker.yml
File metadata and controls
26 lines (26 loc) · 812 Bytes
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
name: Check Links
on:
workflow_dispatch:
schedule:
- cron: "30 11 * * 0"
jobs:
link-checker:
if: github.repository == 'opensearch-project/documentation-website'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4.5'
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