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 05:57:56 UTC

(superset) branch another-monorepo-action-fix updated: fix(actions): specify branch on monorepo lockfile pusher

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

rusackas pushed a commit to branch another-monorepo-action-fix
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/another-monorepo-action-fix by this push:
     new 07faca85f2 fix(actions): specify branch on monorepo lockfile pusher
07faca85f2 is described below

commit 07faca85f241b7962f654c6af87385aaaacf89ca
Author: Evan Rusackas <ev...@rusackas.com>
AuthorDate: Wed Jan 31 22:57:47 2024 -0700

    fix(actions): specify branch on monorepo lockfile pusher
---
 .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}})