Skip to content

Commit ddbdad1

Browse files
author
Stefanni Brasil
committed
Call dynamic-readme reusable workflow
We want to have a way to edit our README footer at one place and have the changes from there be propagated to our repos. By adding this snippet in the README, we call this reusable workflow: https://github.com/thoughtbot/templates/blob/main/.github/workflows/dynamic-readme.yaml that renders and updates the README footer dynamically. More details about this approach can be found here: https://thoughtbot.com/blog/automate-processes-with-reusable-github-workflows
1 parent efe875c commit ddbdad1

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

.github/workflows/dynamic-readme.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: update-templates
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- README.md
9+
workflow_dispatch:
10+
11+
jobs:
12+
update-templates:
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
pages: write
17+
uses: thoughtbot/templates/.github/workflows/dynamic-readme.yaml@main
18+
secrets:
19+
token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,6 @@ under the terms specified in the [LICENSE] file.
115115

116116
[LICENSE]: /LICENSE
117117

118-
## About
118+
<!-- START /templates/footer.md -->
119119

120-
Suspenders is maintained by [thoughtbot].
121-
122-
![thoughtbot](https://thoughtbot.com/brand_assets/93:44.svg)
123-
124-
Suspenders is maintained and funded by thoughtbot, inc.
125-
The names and logos for thoughtbot are trademarks of thoughtbot, inc.
126-
127-
We love open source software!
128-
See [our other projects][community]
129-
or [hire us][hire] to help build your product.
130-
131-
[community]: https://thoughtbot.com/community?utm_source=github
132-
[hire]: https://thoughtbot.com/hire-us?utm_source=github
120+
<!-- END /templates/footer.md -->

0 commit comments

Comments
 (0)