added gh pr list

This commit is contained in:
2025-06-22 20:39:34 -04:00
parent 80e0b03463
commit 8fb6ae41b9

View File

@@ -15,5 +15,13 @@ jobs:
steps: steps:
- name: Enable auto-merge - name: Enable auto-merge
run: gh pr merge flake_lock_update --auto run: gh pr merge flake_lock_update --auto
- name: Enable auto-merge
run: |
pr_number=$(gh pr list --state open --author "RichieCahill" --label flake_lock_update --json number --jq '.[0].number')
if [ -n "$pr_number" ]; then
gh pr merge "$pr_number" --auto
else
echo "No open PR found with label flake_lock_update"
fi
env: env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_UPDATES }} GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_UPDATES }}