Skip to content

Commit 2ef03ca

Browse files
authored
fix(dependabot): lockfile updater won't fail when there's nothing to … (apache#26904)
1 parent 484901f commit 2ef03ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update-monorepo-lockfiles.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ jobs:
3535
git config user.name "GitHub-Actions[bot]"
3636
git config user.email "github-actions[bot]@users.noreply.github.com"
3737
git add package-lock.json
38-
git commit -m "Update lock file for Dependabot PR" -a # Commit the changes
39-
git push https://${{ github.token }}@github.com/${{ github.repository }}.git
38+
git diff --staged --quiet || (git commit -m "Update lock file for Dependabot PR" -a && git push https://${{ github.token }}@github.com/${{ github.repository }}.git)
39+

0 commit comments

Comments
 (0)