From c95b656fc6a5877e0961d7081eb455167d9820c5 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Tue, 17 Feb 2026 02:00:57 +0800 Subject: [PATCH] chore: reduce GitHub API rate limit hits --- .github/workflows/auto-review.yml | 11 +++++++++-- .github/workflows/build.yml | 6 ++++++ .github/workflows/code-style.yml | 8 +++++++- .github/workflows/generate-page.yml | 4 +++- 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-review.yml b/.github/workflows/auto-review.yml index 0b9fd918..5fef95b8 100644 --- a/.github/workflows/auto-review.yml +++ b/.github/workflows/auto-review.yml @@ -2,7 +2,7 @@ name: automatic review on: schedule: - - cron: '0 0 * * *' + - cron: '0 1 * * *' push: branches: - develop @@ -18,6 +18,10 @@ on: - tests/** - .github/workflows/auto-review.yml +concurrency: + group: auto-review-${{ github.ref }} + cancel-in-progress: true + jobs: code: name: Automatic Review on Code [PHP ${{ matrix.php-version }}] @@ -26,8 +30,9 @@ jobs: strategy: fail-fast: false + # Run only on the highest supported PHP version to reduce API load matrix: - php-version: ['8.2', '8.3', '8.4', '8.5'] + php-version: ['8.5'] permissions: pull-requests: read @@ -59,6 +64,8 @@ jobs: - name: Install dependencies run: composer update --ansi + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run Automatic Review Test Suite run: vendor/bin/phpunit --color=always --group=auto-review diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 749948be..98ac9862 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,10 @@ on: permissions: contents: read +concurrency: + group: build-${{ github.ref }} + cancel-in-progress: true + jobs: main: name: Build [PHP ${{ matrix.php-version }}] @@ -64,6 +68,8 @@ jobs: - name: Install dependencies run: composer update --ansi + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run Translations Test Suite run: | diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index 317189a6..c0cf6e6b 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -2,7 +2,7 @@ name: code style on: schedule: - - cron: '0 0 * * *' + - cron: '0 2 * * *' push: branches: - develop @@ -25,6 +25,10 @@ on: permissions: contents: read +concurrency: + group: code-style-${{ github.ref }} + cancel-in-progress: true + jobs: main: name: Code Style Check [PHP ${{ matrix.php-version }}] @@ -62,6 +66,8 @@ jobs: - name: Install dependencies on tools run: composer update --ansi + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run PHP CS Fixer run: composer cs diff --git a/.github/workflows/generate-page.yml b/.github/workflows/generate-page.yml index 7d627943..db0d3a13 100644 --- a/.github/workflows/generate-page.yml +++ b/.github/workflows/generate-page.yml @@ -19,7 +19,7 @@ permissions: # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: - group: "pages" + group: pages-deploy cancel-in-progress: false jobs: @@ -54,6 +54,8 @@ jobs: - name: Install dependencies run: composer update --ansi + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Setup Pages id: pages