From 4afc30984aa9e28ca9458dbc868ee3e1dbb5c09b Mon Sep 17 00:00:00 2001 From: Ostrzyciel Date: Tue, 12 Dec 2023 13:49:21 +0100 Subject: [PATCH] CI: add API limit wait and improve concurrency --- .github/workflows/release.yaml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d91a567..57a4868 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -8,14 +8,24 @@ on: workflow_dispatch: {} jobs: - release: - name: "Package and release category" + wait: + uses: RiverBench/ci-workflows/.github/workflows/wait-for-rate-limit.yaml@main # Skip CI if this is the template repository. if: github.repository != 'RiverBench/category-template' + secrets: inherit + with: + needed-calls: 200 + + release: + name: "Package and release category" + needs: wait runs-on: "ubuntu-latest" container: ghcr.io/riverbench/ci-worker:main - # Force only one package job to execute at a time, to avoid duplicating work. - concurrency: package-category + # Force only one package job to execute at a time per ref, to avoid duplicating work. + concurrency: + group: package-category-${{ github.ref }} + # Cancel any in-progress jobs if a new one is queued. + cancel-in-progress: true permissions: write-all steps: