File tree 4 files changed +30
-9
lines changed
4 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 12
12
- name : Bump outdated casks
13
13
# continue-on-error: true
14
14
env :
15
+ HOMEBREW_DEVELOPER : ' 1'
15
16
HOMEBREW_GITHUB_API_TOKEN : ${{ inputs.HOMEBREW_GITHUB_API_TOKEN }}
16
17
shell : bash
18
+ # https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#primary-rate-limit-for-authenticated-users
19
+ # Github Actions: 5000 requests per hour
20
+ # 1 * 60 * 24 = 1440 (because bump-pr will checkout a new branch and push to remote)
21
+ # 1 concurrent parallel jobs, 1 second delay between jobs.
17
22
run : |
18
- parallel -j0 --group --halt now,fail=1 \
19
- ' ./.github/actions/bump-casks/script.sh {}' \
23
+ parallel -j1 --delay 1s --group --halt now,fail=1 \
24
+ " ./.github/actions/bump-casks/script.sh {}" \
20
25
::: $(ls $(brew --repository brewforge/chinese)/Casks/*.rb | xargs -I {} basename {} .rb)
Original file line number Diff line number Diff line change 12
12
- name : Bump outdated formulas
13
13
# continue-on-error: true
14
14
env :
15
+ HOMEBREW_DEVELOPER : ' 1'
15
16
HOMEBREW_GITHUB_API_TOKEN : ${{ inputs.HOMEBREW_GITHUB_API_TOKEN }}
16
17
shell : bash
18
+ # https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#primary-rate-limit-for-authenticated-users
19
+ # Github Actions: 5000 requests per hour
20
+ # 1 * 60 * 24 = 1440 (because bump-pr will checkout a new branch and push to remote)
21
+ # 1 concurrent parallel jobs, 1 second delay between jobs.
17
22
run : |
18
- parallel -j0 --group --halt now,fail=1 \
19
- ' ./.github/actions/bump-formulas/script.sh {}' \
23
+ parallel -j1 --delay 1s --group --halt now,fail=1 \
24
+ " ./.github/actions/bump-formulas/script.sh {}" \
20
25
::: $(ls $(brew --repository brewforge/chinese)/Formula/*.rb | xargs -I {} basename {} .rb)
Original file line number Diff line number Diff line change @@ -16,14 +16,22 @@ runs:
16
16
core : true
17
17
cask : true
18
18
test-bot : false
19
+ token : ${{ inputs.HOMEBREW_GITHUB_API_TOKEN }}
19
20
20
- - name : Add parallel cli
21
+ # Homebrew/actions/setup-homebrew will checkout the main branch.
22
+ # re-checkout myself.
23
+ - uses : actions/checkout@v3
24
+
25
+ - name : Necessary clis
21
26
shell : bash
22
27
run : |
23
28
brew install parallel
24
29
# makesure brew livecheck works
25
30
brew livecheck parallel
26
31
32
+ brew install coreutils
33
+ brew link --overwrite coreutils
34
+
27
35
- name : Add Tap
28
36
env :
29
37
HOMEBREW_GITHUB_API_TOKEN : ${{ inputs.HOMEBREW_GITHUB_API_TOKEN }}
32
40
brew tap brewforge/chinese
33
41
brew update
34
42
brew install ripgrep sd
43
+ brew install-bundler-gems --groups "audit,style"
Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : schedule
2
2
3
3
on :
4
- pull_request :
5
- branches : [main, bump-* ]
4
+ # pull_request:
5
+ # branches: [main]
6
6
push :
7
7
branches : [fix-*]
8
8
schedule :
11
11
# Every day at 6am
12
12
- cron : " 0 6 * * *"
13
13
# allow run manually
14
- workflow_dispatch : {}
14
+ workflow_dispatch :
15
+
16
+ permissions : write-all
15
17
16
18
jobs :
17
19
casks :
You can’t perform that action at this time.
0 commit comments