Skip to content

Commit

Permalink
Specify --repo, avoid xargs
Browse files Browse the repository at this point in the history
  • Loading branch information
zware committed Apr 16, 2024
1 parent f11008a commit 36d5ce5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/autoclose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ jobs:
steps:
- name: Close Pull Requests
run: >
gh pr list --json number --jq .[].number
| xargs -L1 gh pr close --comment "$COMMENT"
for pr in $(gh pr list --repo $REPO_NAME --json number --jq .[].number); do
gh pr close --repo $REPO_NAME --comment "$COMMENT" $pr;
done
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_NAME: python/cpython-source-deps
COMMENT: >
We do not accept PRs on this repository. Please file an issue at
https://github.com/python/cpython requesting an update to the
Expand Down

0 comments on commit 36d5ce5

Please sign in to comment.