Link checker update: fail on PRs and run for all branches (#3690)

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
This commit is contained in:
kolchfa-aws 2023-04-06 11:42:03 -04:00 committed by GitHub
parent 89b16a9925
commit 8847b4069a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -13,4 +13,4 @@ jobs:
ruby-version: '3.0'
bundler-cache: true
- run: |
JEKYLL_LINK_CHECKER=internal bundle exec jekyll build --future
JEKYLL_FATAL_LINK_CHECKER=internal bundle exec jekyll build --future

View File

@ -5,9 +5,14 @@ on:
- cron: "30 11 * * *"
jobs:
check:
strategy:
matrix:
branch: [main, 2.*, 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'