We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe3aaa2 commit 5fbb847Copy full SHA for 5fbb847
.github/workflows/update-monorepo-lockfiles.yml
@@ -35,4 +35,5 @@ jobs:
35
git config user.name "GitHub-Actions[bot]"
36
git config user.email "github-actions[bot]@users.noreply.github.com"
37
git add package-lock.json
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)
+ # Push the changes back to the branch if they exist, and pass if there are no changes
39
+ git diff --staged --quiet || (git commit -m "Update lock file for Dependabot PR" -a && git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} ${{github.head_ref}})
0 commit comments