Fix another typo in janitor GHA

PiperOrigin-RevId: 560173228
pull/13695/head
Mike Kruskal 1 year ago committed by Copybara-Service
parent 58a7fcb0d9
commit 39f7334740
  1. 22
      .github/workflows/janitor.yml

@ -10,15 +10,15 @@ jobs:
stale-prs: stale-prs:
name: Close Stale Copybara PRs name: Close Stale Copybara PRs
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
run: | - run: |
set -ex set -ex
STALE_PRS=$(gh pr list --author "app/copybara-service" --limit 500 \ STALE_PRS=$(gh pr list --author "app/copybara-service" --limit 500 \
--json "number" --search "updated:<=$(date --date="-7 day" +%F)" \ --json "number" --search "updated:<=$(date --date="-7 day" +%F)" \
| jq ".[].number") | jq ".[].number")
for pr in $(STALE_PRS); do for pr in $(STALE_PRS); do
echo "Closing #$pr..." echo "Closing #$pr..."
gh pr close --comment "Auto-closing Copybara pull request" --delete-branch "$pr" gh pr close --comment "Auto-closing Copybara pull request" --delete-branch "$pr"
done done
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Loading…
Cancel
Save