From 391c47c2eb98180a6d93a72d3b4b516f9348a0ec Mon Sep 17 00:00:00 2001 From: Stefanni Brasil Date: Fri, 12 Apr 2024 17:38:44 -0600 Subject: [PATCH] Only run this workflow if the README has been updated --- .github/workflows/dynamic-readme.yml | 4 +++- README.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dynamic-readme.yml b/.github/workflows/dynamic-readme.yml index 41bb5db0..78fd5862 100644 --- a/.github/workflows/dynamic-readme.yml +++ b/.github/workflows/dynamic-readme.yml @@ -1,9 +1,11 @@ name: update-templates -on: +on: push: branches: - main + paths: + - README.md workflow_dispatch: jobs: diff --git a/README.md b/README.md index 6769bd21..33f30c56 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,7 @@ software, and may be redistributed under the terms specified in the [LICENSE]: https://github.com/thoughtbot/factory_bot/blob/main/LICENSE + [ci-image]: https://github.com/thoughtbot/factory_bot/actions/workflows/build.yml/badge.svg?branch=main