From 5373ff4dd67b61ee0323e9b89d9c46aabde1eeb2 Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Wed, 12 May 2021 21:53:11 +0300 Subject: [PATCH] meta(gha): Deploy action issue-status-helper.yml --- .github/workflows/issue-status-helper.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue-status-helper.yml b/.github/workflows/issue-status-helper.yml index 696624baa3215e..b5164750e8f5d8 100644 --- a/.github/workflows/issue-status-helper.yml +++ b/.github/workflows/issue-status-helper.yml @@ -3,7 +3,7 @@ on: issues: types: [labeled] jobs: - routed: + ensure_one_status: runs-on: ubuntu-latest if: "startsWith(github.event.label.name, 'Status: ')" steps: @@ -12,5 +12,5 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_REPO: ${{ github.repository }} run: | - labels_to_remove=$(gh api "/repos/$GH_REPO/labels" -q '[.[].name | select(startswith("Status: ") and . != "${{ github.event.label.name }}")] | join(",")') + labels_to_remove=$(gh api --paginate "/repos/$GH_REPO/labels" -q '[.[].name | select(startswith("Status: ") and . != "${{ github.event.label.name }}")] | join(",")') gh issue edit ${{ github.event.issue.number }} --remove-label "$labels_to_remove" --add-label "${{ github.event.label.name }}" \ No newline at end of file