Skip to content

Commit 3cdcdb4

Browse files
authored
chore: reduce GitHub API rate limit hits (#527)
1 parent 874e48d commit 3cdcdb4

4 files changed

Lines changed: 25 additions & 4 deletions

File tree

.github/workflows/auto-review.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: automatic review
22

33
on:
44
schedule:
5-
- cron: '0 0 * * *'
5+
- cron: '0 1 * * *'
66
push:
77
branches:
88
- develop
@@ -18,6 +18,10 @@ on:
1818
- tests/**
1919
- .github/workflows/auto-review.yml
2020

21+
concurrency:
22+
group: auto-review-${{ github.ref }}
23+
cancel-in-progress: true
24+
2125
jobs:
2226
code:
2327
name: Automatic Review on Code [PHP ${{ matrix.php-version }}]
@@ -26,8 +30,9 @@ jobs:
2630

2731
strategy:
2832
fail-fast: false
33+
# Run only on the highest supported PHP version to reduce API load
2934
matrix:
30-
php-version: ['8.2', '8.3', '8.4', '8.5']
35+
php-version: ['8.5']
3136

3237
permissions:
3338
pull-requests: read
@@ -59,6 +64,8 @@ jobs:
5964

6065
- name: Install dependencies
6166
run: composer update --ansi
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6269

6370
- name: Run Automatic Review Test Suite
6471
run: vendor/bin/phpunit --color=always --group=auto-review

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ on:
2121
permissions:
2222
contents: read
2323

24+
concurrency:
25+
group: build-${{ github.ref }}
26+
cancel-in-progress: true
27+
2428
jobs:
2529
main:
2630
name: Build [PHP ${{ matrix.php-version }}]
@@ -64,6 +68,8 @@ jobs:
6468

6569
- name: Install dependencies
6670
run: composer update --ansi
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6773

6874
- name: Run Translations Test Suite
6975
run: |

.github/workflows/code-style.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: code style
22

33
on:
44
schedule:
5-
- cron: '0 0 * * *'
5+
- cron: '0 2 * * *'
66
push:
77
branches:
88
- develop
@@ -25,6 +25,10 @@ on:
2525
permissions:
2626
contents: read
2727

28+
concurrency:
29+
group: code-style-${{ github.ref }}
30+
cancel-in-progress: true
31+
2832
jobs:
2933
main:
3034
name: Code Style Check [PHP ${{ matrix.php-version }}]
@@ -62,6 +66,8 @@ jobs:
6266

6367
- name: Install dependencies on tools
6468
run: composer update --ansi
69+
env:
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6571

6672
- name: Run PHP CS Fixer
6773
run: composer cs

.github/workflows/generate-page.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2020
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2121
concurrency:
22-
group: "pages"
22+
group: pages-deploy
2323
cancel-in-progress: false
2424

2525
jobs:
@@ -54,6 +54,8 @@ jobs:
5454

5555
- name: Install dependencies
5656
run: composer update --ansi
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5759

5860
- name: Setup Pages
5961
id: pages

0 commit comments

Comments
 (0)