From 3a5cbcdaa40f332f0d2b629c73ffea493372855f Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Tue, 31 Aug 2021 11:18:22 -0500 Subject: [PATCH] Commit auto-updates only if assets have changed Follow-up to #48. This prevents commits that only update `yarn.lock`, such as 2338bd6187da1f588903b2ba2f1d2692a654d6a3. --- .github/workflows/update-tailwind.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-tailwind.yml b/.github/workflows/update-tailwind.yml index ecf18c5e..8d65ee36 100644 --- a/.github/workflows/update-tailwind.yml +++ b/.github/workflows/update-tailwind.yml @@ -21,7 +21,7 @@ jobs: run: | git config --local user.email "github-actions@example.com" git config --local user.name "GitHub Actions" - git commit -am "Update tailwind.css" || echo "No changes to commit" + git diff --quiet app/assets || git commit -am "Update tailwind.css" - name: Push changes uses: ad-m/github-push-action@master