ci: use --head flag to push lockfile branch

This commit is contained in:
seth 2024-01-11 15:27:09 -05:00
parent f9bce7fbf0
commit 53676c67dd
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86

View file

@ -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