Skip to content

Refresh DSFR docs

Refresh DSFR docs #8

Workflow file for this run

name: Refresh DSFR docs
on:
schedule:
# Every day at 03:17 UTC
- cron: "17 3 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
refresh:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm fetch-docs
- name: Commit if docs changed
run: |
if [ -n "$(git status --porcelain docs/)" ]; then
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add docs/
git commit -m "chore: refresh DSFR docs"
git push
else
echo "No documentation changes."
fi