Skip to content

Scheduled link check demo #437

Scheduled link check demo

Scheduled link check demo #437

Workflow file for this run

# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: 2021-2023 The Foundation for Public Code <[email protected]>
name: Scheduled link check demo
on:
workflow_dispatch: {}
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '11 3 * * *' # every day at 03:11 UTC
defaults:
run:
shell: bash
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
deployments: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
link-check:
if: ${{ github.repository == 'publiccodenet/url-check' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: update-deps
run: sudo apt-get update
- name: upgrade-deps
run: sudo apt-get upgrade -y
- name: install-deps
run: >
sudo apt-get install -y
libxml2-utils
make
nodejs
python3
python3-docopt
wget
- name: fetch-previous-results
run: wget https://publiccodenet.github.io/url-check/url-check-results.json
- name: update-site
run: make site
- name: report-built-files
run: find _site -ls
- name: Deploy to GitHub Pages
id: deployment
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site