File tree 2 files changed +3
-19
lines changed
2 files changed +3
-19
lines changed Original file line number Diff line number Diff line change 1
1
name : Auto-update fpm Formula
2
2
3
3
on :
4
- schedule :
5
- - cron : " 0 0 * * *" # Runs daily at midnight UTC
6
4
workflow_dispatch : # Allows manual trigger
7
5
8
6
jobs :
Original file line number Diff line number Diff line change 4
4
branches :
5
5
- main
6
6
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
+
12
8
jobs :
13
9
test-bot :
14
10
strategy :
23
19
runs-on : ${{ matrix.os }}
24
20
timeout-minutes : 60 # Increased timeout for ARM builds
25
21
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
-
35
22
- name : Set up Homebrew
36
23
id : set-up-homebrew
37
24
uses : Homebrew/actions/setup-homebrew@master
@@ -56,13 +43,12 @@ jobs:
56
43
- run : brew test-bot --only-tap-syntax
57
44
58
45
- 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'
60
47
env :
61
48
HOMEBREW_ARCH : ${{ matrix.arch }}
62
- GITHUB_SHA : ${{ github.event.inputs.head_sha }}
63
49
64
50
- 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')
66
52
uses : actions/upload-artifact@v4
67
53
with :
68
54
name : bottles-${{ matrix.os }}-${{ matrix.arch }}
You can’t perform that action at this time.
0 commit comments