Skip to content

Commit ad3476d

Browse files
kendalharlandkendal
andcommitted
[gha][firebase] Run on pull_request (#28)
Skip actions/upload for nuget pkg when workflow_dispatch Co-authored-by: kendal <kendal@thebrowser.company>
1 parent 10016a2 commit ad3476d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/bcny-firebase.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: firebase
22

33
on:
4+
pull_request:
45
workflow_dispatch:
56

67
jobs:
@@ -28,7 +29,6 @@ jobs:
2829
with:
2930
fetch-depth: 1
3031
path: ${{ github.workspace }}/SourceCache/firebase-cpp-sdk
31-
ref: refs/heads/compnerd/swift
3232
repository: thebrowsercompany/firebase-cpp-sdk
3333

3434
- uses: compnerd/gha-setup-vsdevenv@main
@@ -301,11 +301,13 @@ jobs:
301301
nuget pack -Properties BUILDROOT=${{ github.workspace }}\BuildRoot\Library\firebase -Suffix (git -C ${{ github.workspace }}/SourceCache/firebase-cpp-sdk log -1 --format=%h) firebase.nuspec
302302
shell: pwsh
303303
- uses: actions/upload-artifact@v3
304+
if: ${{ github.event_name == 'workflow_dispatch' }}
304305
with:
305306
name: windows-${{ matrix.arch }}.nupkg
306307
path: com.google.firebase.windows.${{ matrix.arch }}.*.nupkg
307308

308309
- name: Publish NuGet Packages
310+
if: ${{ github.event_name == 'workflow_dispatch' }}
309311
env:
310312
NUGET_SOURCE_NAME: TheBrowserCompany
311313
NUGET_SOURCE_URL: https://nuget.pkg.github.com/thebrowsercompany/index.json

0 commit comments

Comments
 (0)