From 074691654546b20b0b01225b058268c3845d6082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Thu, 9 Nov 2023 10:06:38 +0100 Subject: [PATCH] debug --- .github/workflows/e2e-tests.yaml | 14 +++++++------- .github/workflows/requirement-checker.yaml | 9 +++++++++ 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index 28d8d5b14..5e93d57a0 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -31,13 +31,7 @@ jobs: shell: bash - name: Check rate limit - run: | - curl -L \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer {{ secrets.GITHUB_TOKEN }}" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - https://api.github.com/rate_limit - shell: bash + run: gh api rate_limit # I could not make this workflow work with a on.workflow_run. Hence instead of adding this # wait step for _every_ e2e job, which will block more runners, we wait in one and only one @@ -58,6 +52,9 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} intervalSeconds: ${{ env.POLLING_INTERVALS_SEC }} + - name: Check rate limit + run: gh api rate_limit + e2e-tests: runs-on: ubuntu-latest name: Test ${{ matrix.e2e }} (PHP ${{ matrix.php }}, ${{ matrix.tools }}) @@ -100,6 +97,9 @@ jobs: if: ${{ matrix.php == '8.3' }} run: echo "COMPOSER_IGNORE_PLATFORM_REQ=--ignore-platform-req=php+" >> "$GITHUB_ENV" + - name: Check rate limit + run: gh api rate_limit + # We cannot use the regular actions/download-artifact here since the artifact is stored # in a different workflow. # See https://github.com/actions/download-artifact/issues/172 diff --git a/.github/workflows/requirement-checker.yaml b/.github/workflows/requirement-checker.yaml index ad1775843..1e490315b 100644 --- a/.github/workflows/requirement-checker.yaml +++ b/.github/workflows/requirement-checker.yaml @@ -162,6 +162,9 @@ jobs: run: sleep ${{ env.SLEEP_TIME_SEC }} shell: bash + - name: Check rate limit + run: gh api rate_limit + # I could not make this workflow work with a on.workflow_run. Hence instead of adding this # wait step for _every_ e2e job, which will block more runners, we wait in one and only one # runner. @@ -181,6 +184,9 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} intervalSeconds: ${{ env.POLLING_INTERVALS_SEC }} + - name: Check rate limit + run: gh api rate_limit + e2e-tests: runs-on: ubuntu-latest name: End-to-End Tests @@ -218,6 +224,9 @@ jobs: tools: composer coverage: none + - name: Check rate limit + run: gh api rate_limit + # We cannot use the regular actions/download-artifact here since the artifact is stored # in a different workflow. # See https://github.com/actions/download-artifact/issues/172