File tree Expand file tree Collapse file tree 2 files changed +3
-19
lines changed Expand file tree Collapse file tree 2 files changed +3
-19
lines changed Original file line number Diff line number Diff line change 11name : Auto-update fpm Formula
22
33on :
4- schedule :
5- - cron : " 0 0 * * *" # Runs daily at midnight UTC
64 workflow_dispatch : # Allows manual trigger
75
86jobs :
Original file line number Diff line number Diff line change 44 branches :
55 - main
66 pull_request :
7- workflow_dispatch : # Added to allow manual triggering from the main workflow
8- inputs :
9- head_sha : # Input for the PR’s head SHA
10- description : ' Head SHA of the PR to test'
11- required : true
7+
128jobs :
139 test-bot :
1410 strategy :
2319 runs-on : ${{ matrix.os }}
2420 timeout-minutes : 60 # Increased timeout for ARM builds
2521 steps :
26- - name : Checkout PR commit
27- uses : actions/checkout@v4
28- with :
29- ref : ${{ github.event.inputs.head_sha }}
30-
31- - name : Debug head_sha
32- run : echo "head_sha=${{ github.event.inputs.head_sha }}"
33-
34-
3522 - name : Set up Homebrew
3623 id : set-up-homebrew
3724 uses : Homebrew/actions/setup-homebrew@master
@@ -56,13 +43,12 @@ jobs:
5643 - run : brew test-bot --only-tap-syntax
5744
5845 - run : brew test-bot --only-formulae
59- if : github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
46+ if : github.event_name == 'pull_request'
6047 env :
6148 HOMEBREW_ARCH : ${{ matrix.arch }}
62- GITHUB_SHA : ${{ github.event.inputs.head_sha }}
6349
6450 - name : Upload bottles as artifact
65- if : always() && (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' )
51+ if : always() && (github.event_name == 'pull_request')
6652 uses : actions/upload-artifact@v4
6753 with :
6854 name : bottles-${{ matrix.os }}-${{ matrix.arch }}
You can’t perform that action at this time.
0 commit comments