Skip to content

Commit

Permalink
ci: use --head flag to push lockfile branch
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Jan 11, 2024
1 parent f9bce7f commit 53676c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/update-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -49,5 +53,6 @@ jobs:
run: |
gh pr create \
--base main \
--head ${{ steps.branch.outputs.branch }} \
--title "chore: update lockfiles" \
--fill

0 comments on commit 53676c6

Please sign in to comment.