Skip to content

Link-Check

Link-Check #729

Workflow file for this run

name: Link-Check
on:
workflow_dispatch:
schedule:
- cron: '08 08 * * *'
jobs:
Check-Links:
runs-on: ubuntu-latest
concurrency:
group: checklinks-${{ github.ref }}
cancel-in-progress: true
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server."
- run: echo "The name of the branch is ${{ github.ref }} and the repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- name: "Set environmental variables"
run: |
echo "GALACTICUS_EXEC_PATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
- name: Install tools
run: |
sudo apt -y update
sudo apt install -y python3-pypdf2 perl curl git
- name: Check for broken links
run: |
cd $GALACTICUS_EXEC_PATH
git config --global --add safe.directory $GALACTICUS_EXEC_PATH
./scripts/aux/linkChecker.pl
- run: echo "This job's status is ${{ job.status }}."