Skip to content

Commit 6112885

Browse files
committed
Skip publishing steps if triggered by a PR (#43)
1 parent 6958797 commit 6112885

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/bcny-firebase.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ jobs:
143143
path: ${{ github.workspace }}/BuildRoot/Library/firebase
144144

145145
- name: Create Release
146+
if: github.event_name != 'pull_request'
146147
env:
147148
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
148149
run: |
@@ -326,13 +327,13 @@ jobs:
326327
nuget pack -Properties BUILDROOT=${{ github.workspace }}\BuildRoot\Library\firebase -Suffix (git -C ${{ github.workspace }}/SourceCache/firebase-cpp-sdk log -1 --format=%h) firebase.nuspec
327328
shell: pwsh
328329
- uses: actions/upload-artifact@v3
329-
if: ${{ github.event_name == 'workflow_dispatch' }}
330+
if: github.event_name != 'pull_request'
330331
with:
331332
name: windows-${{ matrix.arch }}.nupkg
332333
path: com.google.firebase.windows.${{ matrix.arch }}.*.nupkg
333334

334335
- name: Publish NuGet Packages
335-
if: ${{ github.event_name == 'workflow_dispatch' }}
336+
if: github.event_name != 'pull_request'
336337
env:
337338
NUGET_SOURCE_NAME: TheBrowserCompany
338339
NUGET_SOURCE_URL: https://nuget.pkg.github.com/thebrowsercompany/index.json
@@ -452,6 +453,7 @@ jobs:
452453

453454
release_android:
454455
needs: [android]
456+
if: github.event_name != 'pull_request'
455457
runs-on: windows-latest
456458
steps:
457459
- name: Download firebase-android-arm64-v8a artifact

0 commit comments

Comments
 (0)