Operator 1.1 RN #12030
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Link Checker | |
on: | |
pull_request: | |
jobs: | |
link-checker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.92.1' | |
extended: true | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true # Fetch Hugo themes (true OR recursive) | |
fetch-depth: 0 | |
- name: Check broken links | |
run: | | |
base_branch=$(jq -r ".pull_request.base.ref" "$GITHUB_EVENT_PATH") | |
commit_before_pull_request=$(git merge-base origin/$base_branch HEAD) | |
echo "Base PR commit: $commit_before_pull_request" | |
cd tyk-docs && bash ../scripts/urlcheck.sh $commit_before_pull_request | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: urlcheck-new | |
path: /tmp/urlcheck.new.json | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: urlcheck-prev | |
path: /tmp/urlcheck.prev.json | |
# - name: Setup upterm session | |
# if: always() | |
# uses: lhotari/action-upterm@v1 | |