Skip to content

Commit a6c8725

Browse files
authored
[Infra] Add support for manual dispatch to new re-usable SPM workflow (#14759)
1 parent 912d8c0 commit a6c8725

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/common.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: common
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_call:
58
inputs:
@@ -56,8 +59,8 @@ jobs:
5659
key: ${{ steps.generate_cache_key.outputs.cache_key }}
5760

5861
spm:
59-
# Don't run on private repo unless it is a PR.
60-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
62+
# Run on the main repo's scheduled jobs or pull requests and manual workflow invocations.
63+
if: (github.repository == 'firebase/firebase-ios-sdk' && github.event_name == 'schedule') || contains(fromJSON('["pull_request", "workflow_dispatch"]'), github.event_name)
6164
needs: [spm-package-resolved]
6265
strategy:
6366
matrix:

0 commit comments

Comments
 (0)