Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 21 additions & 12 deletions .github/workflows/check_links.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
---
name: 'Check links'
name: "Check links"

# yamllint disable-line rule:truthy
on:
workflow_dispatch:
schedule:
- cron: '37 11 * * 2'
- cron: "37 11 * * 2"

permissions:
contents: read

jobs:

links:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v7.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Install Python and just
uses: opensafely-core/setup-action@v1
uses: opensafely-core/setup-action@d9171097dd0d37bdb7bed58f701eb03ff317ed17 # v1.7.0
with:
install-just: true
python-version: '3.11'
python-version: "3.11"

- name: Build site
env:
Expand All @@ -38,9 +38,18 @@ jobs:
# This workaround may not be needed in future if lychee has better rate limiting.
# https://github.com/lycheeverse/lychee/issues/36
- name: Check links
# 2.6.1 seemed to cause the exclude-path to not take effect, waiting for next release.
uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2.4.1
uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
Comment thread
tomodwyer marked this conversation as resolved.
with:
args: "--exclude-all-private --include-verbatim --max-concurrency 24 --require-https --verbose --no-progress --offline
--accept '100..=103,200..=299,429,500..=511'
--timeout 60 './docs/**/*.md' './docs/**/*.html' './imported_docs/**/*.md' './imported_docs/**/*.html' --exclude-path './docs/ehrql/includes/generated_docs'"
args:
"--accept '100..=103,200..=299,429,500..=511'
--exclude-all-private
--exclude-path 'docs/ehrql/includes/generated_docs'
--include-verbatim
--max-concurrency 24
--no-progress
--offline
--require-https
--root-dir '${{ github.workspace }}/site'
--timeout 60
--verbose
'./docs/**/*.md' './docs/**/*.html'"
9 changes: 5 additions & 4 deletions .github/workflows/check_redirects.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
---
name: 'Check Cloudflare redirects'
name: "Check Cloudflare redirects"

# yamllint disable-line rule:truthy
on:
workflow_dispatch:
schedule:
- cron: '25 10 * * 2'
- cron: "25 10 * * 2"

permissions:
contents: read
Expand All @@ -15,7 +14,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v7.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Check Cloudflare redirects
run: |
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/check_vale.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
name: 'Check docs with Vale'
name: "Check docs with Vale"

# yamllint disable-line rule:truthy
on:
Expand All @@ -13,10 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v7.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Install just
uses: opensafely-core/setup-action@v1
uses: opensafely-core/setup-action@d9171097dd0d37bdb7bed58f701eb03ff317ed17 # v1.7.0
with:
install-just: true

Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/pages-deployment.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
---
name:
"Build & deploy to Cloudflare Pages"
name: "Build & deploy to Cloudflare Pages"

on:
push:
workflow_dispatch:

jobs:
deploy:

permissions:
contents: read
deployments: write
Expand All @@ -18,13 +15,15 @@ jobs:
name: Deploy to Cloudflare Pages
steps:
- name: Checkout repo
uses: actions/checkout@v7.0.0
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: Install Python and just
uses: opensafely-core/setup-action@v1
uses: opensafely-core/setup-action@d9171097dd0d37bdb7bed58f701eb03ff317ed17 # v1.7.0
with:
install-just: true
python-version: '3.11'
python-version: "3.11"

- name: Build site
env:
Expand Down