chore: auto-merge lockfile refresh PRs
This commit is contained in:
parent
f1a0460105
commit
3921466aae
1 changed files with 12 additions and 0 deletions
12
.github/workflows/refresh-lockfile.yml
vendored
12
.github/workflows/refresh-lockfile.yml
vendored
|
|
@ -79,3 +79,15 @@ jobs:
|
||||||
else
|
else
|
||||||
echo "PR #$existing already exists, branch updated via force push."
|
echo "PR #$existing already exists, branch updated via force push."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Enable auto-merge for lockfile PR
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
run: |
|
||||||
|
pr_url="$(gh pr list --head chore/refresh-lockfile --json url --jq '.[0].url')"
|
||||||
|
if [ -z "$pr_url" ]; then
|
||||||
|
echo "Error: lockfile PR was not found." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
gh pr merge --auto --squash --delete-branch "$pr_url"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue