You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
body: Automated sync of headers with Node.js ${{ steps.check-changes.outputs.VERSION }}
labels: headers
delete-branch: true
- name: Close existing PRs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
gh pr list --json number,author,title,labels --jq '[ .[] | select(.author.login == "app/github-actions" and .number != ${{ steps.cpr.outputs.pull-request-number }} and (.labels[]| select(.name =="headers" )))]' | jq -c '.[]' |
while IFS=$"\n" read -r c; do
pr_number=$(echo "$c" | jq -r '.number')
gh pr close $pr_number --delete-branch --comment "Closing in favor of [#${{ steps.cpr.outputs.pull-request-number }}](${{ steps.cpr.outputs.pull-request-url }})."