diff --git a/.github/files-sync-config.yaml b/.github/files-sync-config.yaml index 3d84e8d..0ad532e 100644 --- a/.github/files-sync-config.yaml +++ b/.github/files-sync-config.yaml @@ -38,8 +38,10 @@ patterns: # `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. + # README and list it here. Whenever a partial changes, the + # readme-weaver-distribute workflow opens a pull request in every repository + # listed 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 diff --git a/.github/workflows/readme-weaver-distribute.yaml b/.github/workflows/readme-weaver-distribute.yaml new file mode 100644 index 0000000..4e196f6 --- /dev/null +++ b/.github/workflows/readme-weaver-distribute.yaml @@ -0,0 +1,22 @@ +--- +name: readme-weaver-distribute + +permissions: + contents: read + +on: + push: + branches: + - "main" + paths: + - "common-markdown/**" + # new subscribers get their README woven right away + - ".github/files-sync-config.yaml" + workflow_dispatch: + +jobs: + readme-weaver-distribute: + uses: devops-roast/github-actions/.github/workflows/readme-weaver-distribute.yaml@main + with: + partials_ref: ${{ github.sha }} + secrets: inherit