Skip to content

Commit

Permalink
Trigger workflow_dispatch to update repos
Browse files Browse the repository at this point in the history
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 <mina@thoughtbot.com>
Co-authored-by: Akshith Yellapragada <akshith@thoughtbot.com>
Co-authored-by: Nick Charlton <nc@thoughtbot.com>
  • Loading branch information
4 people committed Mar 14, 2024
1 parent f7fedf2 commit dca768d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/trigger-dynamic-readme-update.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit dca768d

Please sign in to comment.