Преглед изворни кода

Update release testing branch to PR in presubmit.

granluo пре 4 година
родитељ
комит
3ef86804dc
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 1
      .github/workflows/prerelease.yml
  2. 1 0
      .github/workflows/release.yml

+ 1 - 1
.github/workflows/prerelease.yml

@@ -20,7 +20,7 @@ jobs:
       # 'podspec_repo_branch' of this repo will be validated and pushed to the
       # testing repo.
       local_sdk_repo_dir: /tmp/test/firebase-ios-sdk
-      podspec_repo_branch: master
+      podspec_repo_branch: "${{ github.event_name == 'pull_request' && github.head_ref || 'master' }}"
     runs-on: macos-11
     steps:
     - uses: actions/checkout@v2

+ 1 - 0
.github/workflows/release.yml

@@ -21,6 +21,7 @@ jobs:
       # the latest release branch of this repo will be validated and pushed to
       # the testing repo.
       local_sdk_repo_dir: /tmp/test/firebase-ios-sdk
+      podspec_repo_branch: "${{ github.event_name == 'pull_request' && github.head_ref || 'master' }}"
     runs-on: macos-11
     steps:
     - uses: actions/checkout@v2