Skip to content

Commit

Permalink
fix(dependabot): lockfile updater won't fail when there's nothing to … (
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas authored Jan 31, 2024
1 parent 484901f commit 2ef03ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-monorepo-lockfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2ef03ca

Please sign in to comment.