Skip to content

Commit be1e725

Browse files
committed
Update tests.yml
1 parent 826c017 commit be1e725

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
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
712
jobs:
813
test-bot:
914
strategy:
@@ -42,12 +47,12 @@ jobs:
4247
- run: brew test-bot --only-tap-syntax
4348

4449
- run: brew test-bot --only-formulae
45-
if: github.event_name == 'pull_request'
50+
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
4651
env:
4752
HOMEBREW_ARCH: ${{ matrix.arch }}
4853

4954
- name: Upload bottles as artifact
50-
if: always() && github.event_name == 'pull_request'
55+
if: always() && (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch')
5156
uses: actions/upload-artifact@v4
5257
with:
5358
name: bottles-${{ matrix.os }}-${{ matrix.arch }}

0 commit comments

Comments
 (0)