expand for future diffing #143
Workflow file for this run
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: Linkcheck | |
on: | |
pull_request: | |
push: {branches-ignore: ["**_pr"]} | |
jobs: | |
linkcheck: | |
name: Linkcheck | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Initialize Python and Poetry | |
uses: ./.github/actions/init | |
with: | |
python-version: "3.10" | |
- name: Run linkcheck | |
env: | |
RETRY: 3 | |
SLEEP_FOR: 10 | |
run: | | |
set -ex | |
until make linkcheck; do | |
if (( i++ < RETRY )); then | |
echo Retrying... | |
sleep "$SLEEP_FOR" | |
else | |
exit 1 | |
fi | |
done |