From dc2c7a51047fefd1cc98dd6472b872ae7a42eb41 Mon Sep 17 00:00:00 2001 From: shmileee Date: Sun, 15 Nov 2026 20:41:06 +0100 Subject: [PATCH] feat: sync the readme-weaver workflow to subscribed repositories Keep the readme-weaver caller workflow here and distribute it with files-sync to the repositories that embed common-markdown partials in their README. It lives outside .github/workflows so it does not run in this repository, which updates its own README through the readme-weaver pre-commit hook. pre-commit-hooks is the first subscriber. --- .github/files-sync-config.yaml | 12 ++++++++++++ .../files-sync/workflows/readme-weaver.yaml | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .github/files-sync/workflows/readme-weaver.yaml diff --git a/.github/files-sync-config.yaml b/.github/files-sync-config.yaml index 54ef886..3d84e8d 100644 --- a/.github/files-sync-config.yaml +++ b/.github/files-sync-config.yaml @@ -33,3 +33,15 @@ patterns: - devops-roast/pre-commit-hooks - devops-roast/renovate-config - devops-roast/website + + # readme-weaver subscribers: repositories whose README embeds partials from + # `common-markdown/` with `` and + # `` markers (paths are relative to + # `common-markdown/`). To subscribe a repository, add the markers to its + # README and list it here. This repository maintains its own README through + # the readme-weaver pre-commit hook instead. + - files: + - from: .github/files-sync/workflows/readme-weaver.yaml + to: .github/workflows/readme-weaver.yaml + repositories: + - devops-roast/pre-commit-hooks diff --git a/.github/files-sync/workflows/readme-weaver.yaml b/.github/files-sync/workflows/readme-weaver.yaml new file mode 100644 index 0000000..395578a --- /dev/null +++ b/.github/files-sync/workflows/readme-weaver.yaml @@ -0,0 +1,19 @@ +--- +name: readme-weaver + +permissions: + id-token: write + contents: write + +on: + workflow_dispatch: + pull_request: + branches: + - "main" + +jobs: + readme-weaver: + uses: devops-roast/github-actions/.github/workflows/readme-weaver.yaml@main + with: + auto_commit: true + secrets: inherit