From a777242878634ec07b439bd5c0541253757000aa Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Fri, 25 Aug 2023 10:23:33 -0700 Subject: [PATCH] Fix typo in janitor GHA PiperOrigin-RevId: 560129834 --- .github/workflows/janitor.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/janitor.yml b/.github/workflows/janitor.yml index 86f746f661..85904a6ef0 100644 --- a/.github/workflows/janitor.yml +++ b/.github/workflows/janitor.yml @@ -8,16 +8,16 @@ on: jobs: stale-prs: - - name: Close Stale Copybara PRs - runs-on: ubuntu-latest - run: | - set -ex - STALE_PRS=$(gh pr list --author "app/copybara-service" --limit 500 \ - --json "number" --search "updated:<=$(date --date="-7 day" +%F)" \ - | jq ".[].number") - for pr in $(STALE_PRS); do - echo "Closing #$pr..." - gh pr close --comment "Auto-closing Copybara pull request" --delete-branch "$pr" - done - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + name: Close Stale Copybara PRs + runs-on: ubuntu-latest + run: | + set -ex + STALE_PRS=$(gh pr list --author "app/copybara-service" --limit 500 \ + --json "number" --search "updated:<=$(date --date="-7 day" +%F)" \ + | jq ".[].number") + for pr in $(STALE_PRS); do + echo "Closing #$pr..." + gh pr close --comment "Auto-closing Copybara pull request" --delete-branch "$pr" + done + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file