From 2ef03ca19b89aaca5c44ebb577270e0083c6ed9d Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Tue, 30 Jan 2024 21:53:46 -0700 Subject: [PATCH] =?UTF-8?q?fix(dependabot):=20lockfile=20updater=20won't?= =?UTF-8?q?=20fail=20when=20there's=20nothing=20to=20=E2=80=A6=20(#26904)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update-monorepo-lockfiles.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-monorepo-lockfiles.yml b/.github/workflows/update-monorepo-lockfiles.yml index f392ee0a898..7591d7420c8 100644 --- a/.github/workflows/update-monorepo-lockfiles.yml +++ b/.github/workflows/update-monorepo-lockfiles.yml @@ -35,5 +35,5 @@ jobs: git config user.name "GitHub-Actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add package-lock.json - git commit -m "Update lock file for Dependabot PR" -a # Commit the changes - git push https://${{ github.token }}@github.com/${{ github.repository }}.git + git diff --staged --quiet || (git commit -m "Update lock file for Dependabot PR" -a && git push https://${{ github.token }}@github.com/${{ github.repository }}.git) +