From bc649af941e1d2824eff5c95ceac87a84c566737 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sun, 28 Apr 2024 22:42:48 +0400 Subject: [PATCH] Schedule no-response action runs at different times To avoid rate limits --- .../{no-response.yml => cant-reproduce.yml} | 25 ++----------------- .github/workflows/needs-user-action.yml | 16 ++++++++++++ .github/workflows/waiting-for-answer.yml | 16 ++++++++++++ 3 files changed, 34 insertions(+), 23 deletions(-) rename .github/workflows/{no-response.yml => cant-reproduce.yml} (57%) create mode 100644 .github/workflows/needs-user-action.yml create mode 100644 .github/workflows/waiting-for-answer.yml diff --git a/.github/workflows/no-response.yml b/.github/workflows/cant-reproduce.yml similarity index 57% rename from .github/workflows/no-response.yml rename to .github/workflows/cant-reproduce.yml index f414a55fd..5c4edcba0 100644 --- a/.github/workflows/no-response.yml +++ b/.github/workflows/cant-reproduce.yml @@ -1,32 +1,11 @@ -name: No Response +name: Can't reproduce. -# Both `issue_comment` and `scheduled` event types are required for this Action -# to work properly. on: - issue_comment: - types: [created] schedule: - - cron: '0 0 * * *' + - cron: '0 3 * * *' jobs: - waiting-for-answer: - runs-on: ubuntu-latest - steps: - - uses: lee-dohm/no-response@v0.5.0 - with: - token: ${{ github.token }} - responseRequiredLabel: waiting for answer - - needs-user-action: - runs-on: ubuntu-latest - steps: - - uses: lee-dohm/no-response@v0.5.0 - with: - token: ${{ github.token }} - responseRequiredLabel: needs user action - cant-reproduce: - if: github.event_name != 'issue_comment' runs-on: ubuntu-latest steps: - uses: lee-dohm/no-response@v0.5.0 diff --git a/.github/workflows/needs-user-action.yml b/.github/workflows/needs-user-action.yml new file mode 100644 index 000000000..46ad9f87d --- /dev/null +++ b/.github/workflows/needs-user-action.yml @@ -0,0 +1,16 @@ +name: Needs user action. + +on: + issue_comment: + types: [created] + schedule: + - cron: '0 2 * * *' + +jobs: + needs-user-action: + runs-on: ubuntu-latest + steps: + - uses: lee-dohm/no-response@v0.5.0 + with: + token: ${{ github.token }} + responseRequiredLabel: needs user action diff --git a/.github/workflows/waiting-for-answer.yml b/.github/workflows/waiting-for-answer.yml new file mode 100644 index 000000000..657c45e92 --- /dev/null +++ b/.github/workflows/waiting-for-answer.yml @@ -0,0 +1,16 @@ +name: Waiting for answer. + +on: + issue_comment: + types: [created] + schedule: + - cron: '0 0 * * *' + +jobs: + waiting-for-answer: + runs-on: ubuntu-latest + steps: + - uses: lee-dohm/no-response@v0.5.0 + with: + token: ${{ github.token }} + responseRequiredLabel: waiting for answer