From 53676c67dde28d1ac9404ae556d7c1724ec19271 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 11 Jan 2024 15:27:09 -0500 Subject: [PATCH] ci: use --head flag to push lockfile branch --- .github/workflows/update-lock.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-lock.yml b/.github/workflows/update-lock.yml index 4c8286b..fb27b60 100644 --- a/.github/workflows/update-lock.yml +++ b/.github/workflows/update-lock.yml @@ -21,9 +21,13 @@ jobs: git config user.email 'github-actions[bot]@users.noreply.github.com' - name: Create new branch + id: branch run: | # try not to conflict with other branches - git switch -c update-lock/${{ github.run_id }} + branch="update-lock/${{ github.run_id }}" + + echo "branch=$branch" >> "$GITHUB_OUTPUT" + git switch -c "$branch" - name: Update flake inputs run: | @@ -49,5 +53,6 @@ jobs: run: | gh pr create \ --base main \ + --head ${{ steps.branch.outputs.branch }} \ --title "chore: update lockfiles" \ --fill