From dca768d71504cbf0e7b15281a8da95108d5a7813 Mon Sep 17 00:00:00 2001 From: Stefanni Brasil Date: Wed, 13 Mar 2024 18:00:28 -0600 Subject: [PATCH] Trigger workflow_dispatch to update repos When we update this template footer file, we want the changes to propagate to the repos using the dynamic-readme reusable worfklow. With this workflow_dispatch, we can achieve that. Co-authored-by: Mina Slater Co-authored-by: Akshith Yellapragada Co-authored-by: Nick Charlton --- .../trigger-dynamic-readme-update.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/trigger-dynamic-readme-update.yaml diff --git a/.github/workflows/trigger-dynamic-readme-update.yaml b/.github/workflows/trigger-dynamic-readme-update.yaml new file mode 100644 index 0000000..12d6db6 --- /dev/null +++ b/.github/workflows/trigger-dynamic-readme-update.yaml @@ -0,0 +1,22 @@ +name: trigger-dynamic-readme-update + +on: + push: + branches: + - main + paths: + - templates/footer.md + +jobs: + trigger-workflow-dispatch: + permissions: + actions: write + runs-on: ubuntu-latest + steps: + - name: Trigger Dynamic READMEs to be updated with templates + uses: benc-uk/workflow-dispatch@v1 + with: + workflow: update-templates + repo: thoughtbot/testing-reusable-repos + token: ${{ secrets.PAT_TOKEN }} + ref: "main"