You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2024/02/01 15:06:16 UTC

(superset) branch master updated: fix(actions): specify branch on monorepo lockfile pusher (#26949)

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 83acac3e43 fix(actions): specify branch on monorepo lockfile pusher (#26949)
83acac3e43 is described below

commit 83acac3e43e7182bea66ae2add132aa4220eb92d
Author: Evan Rusackas <ev...@preset.io>
AuthorDate: Thu Feb 1 08:06:07 2024 -0700

    fix(actions): specify branch on monorepo lockfile pusher (#26949)
---
 .github/workflows/update-monorepo-lockfiles.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/update-monorepo-lockfiles.yml b/.github/workflows/update-monorepo-lockfiles.yml
index e5af99f861..052df96e1c 100644
--- a/.github/workflows/update-monorepo-lockfiles.yml
+++ b/.github/workflows/update-monorepo-lockfiles.yml
@@ -35,4 +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 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
+          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}})