ci: use --head flag to push lockfile branch
This commit is contained in:
parent
f9bce7fbf0
commit
53676c67dd
1 changed files with 6 additions and 1 deletions
7
.github/workflows/update-lock.yml
vendored
7
.github/workflows/update-lock.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue