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'
|
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
|
||||||
- name: Create new branch
|
- name: Create new branch
|
||||||
|
id: branch
|
||||||
run: |
|
run: |
|
||||||
# try not to conflict with other branches
|
# 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
|
- name: Update flake inputs
|
||||||
run: |
|
run: |
|
||||||
|
@ -49,5 +53,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
gh pr create \
|
gh pr create \
|
||||||
--base main \
|
--base main \
|
||||||
|
--head ${{ steps.branch.outputs.branch }} \
|
||||||
--title "chore: update lockfiles" \
|
--title "chore: update lockfiles" \
|
||||||
--fill
|
--fill
|
||||||
|
|
Loading…
Reference in a new issue