fix(dependabot): lockfile updater won't fail when there's nothing to … (#26904)

This commit is contained in:
Evan Rusackas
2024-01-30 21:53:46 -07:00
committed by GitHub
parent 484901f483
commit 2ef03ca19b

View File

@@ -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)