From 71000509346e0cca1038e6828cfc80f817de5433 Mon Sep 17 00:00:00 2001 From: efb4f5ff-1298-471a-8973-3d47447115dc <73130443+efb4f5ff-1298-471a-8973-3d47447115dc@users.noreply.github.com> Date: Mon, 11 Apr 2022 01:32:32 +0000 Subject: [PATCH] test workflow API rate limit exceeded (#2188) * Create autoLabelDuplicate.yml * Update autoLabelDuplicate.yml * Update remove-outdated-labels.yml * Update dependent-issues.yml --- .github/workflows/autoLabelDuplicate.yml | 14 ++++++++++++++ .github/workflows/dependent-issues.yml | 4 ++-- .github/workflows/remove-outdated-labels.yml | 3 --- 3 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/autoLabelDuplicate.yml diff --git a/.github/workflows/autoLabelDuplicate.yml b/.github/workflows/autoLabelDuplicate.yml new file mode 100644 index 00000000..eb2fd1ce --- /dev/null +++ b/.github/workflows/autoLabelDuplicate.yml @@ -0,0 +1,14 @@ +name: "Label Duplicate" +on: + issue_comment: + types: [created] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: Amwam/issue-comment-action@v1.3.1 + with: + keywords: '["duplicate of"]' + labels: '["U: duplicate"]' + github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/dependent-issues.yml b/.github/workflows/dependent-issues.yml index c794c29c..e8cbc18f 100644 --- a/.github/workflows/dependent-issues.yml +++ b/.github/workflows/dependent-issues.yml @@ -18,10 +18,10 @@ on: # can be removed. - synchronize - # Schedule a hourly check. Useful if you reference cross-repository + # Schedule a check every two hours. Useful if you reference cross-repository # issues or pull requests. Otherwise, it can be removed. schedule: - - cron: '0 * * * *' + - cron: '0 */2 * * *' jobs: check: diff --git a/.github/workflows/remove-outdated-labels.yml b/.github/workflows/remove-outdated-labels.yml index 59e41593..737882bf 100644 --- a/.github/workflows/remove-outdated-labels.yml +++ b/.github/workflows/remove-outdated-labels.yml @@ -4,9 +4,6 @@ on: pull_request_target: types: - closed - issues: - types: - - closed jobs: remove-merged-pr-labels: name: Remove merged pull request labels