File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -20,14 +20,18 @@ jobs:
20
20
path : ' home/runner/travisci-tools'
21
21
ref : ' master'
22
22
- name : set SDK Branch if PR
23
+ env :
24
+ HEAD_REF : ${{ github.head_ref }}
23
25
if : ${{ github.event_name == 'pull_request' }}
24
26
run : |
25
- echo "SDK_BRANCH=${{ github.head_ref }} " >> $GITHUB_ENV
27
+ echo "SDK_BRANCH=$HEAD_REF " >> $GITHUB_ENV
26
28
- name : set SDK Branch if not pull request
29
+ env :
30
+ REF_NAME : ${{ github.ref_name }}
27
31
if : ${{ github.event_name != 'pull_request' }}
28
32
run : |
29
- echo "SDK_BRANCH=${{ github.ref_name }} " >> $GITHUB_ENV
30
- echo "TRAVIS_BRANCH=${{ github.ref_name }} " >> $GITHUB_ENV
33
+ echo "SDK_BRANCH=$REF_NAME " >> $GITHUB_ENV
34
+ echo "TRAVIS_BRANCH=$REF_NAME " >> $GITHUB_ENV
31
35
- name : Trigger build
32
36
env :
33
37
SDK : swift
Original file line number Diff line number Diff line change @@ -54,13 +54,17 @@ jobs:
54
54
# macos version and supported simulator_xcode_versions are all related to this xcode_version, so be careful when you upgrade this.
55
55
xcode-version : 14.1
56
56
- name : set SDK Branch if PR
57
+ env :
58
+ BASE_REF : ${{ github.base_ref }}
57
59
if : ${{ github.event_name == 'pull_request' }}
58
60
run : |
59
- echo "BRANCH=${{ github.base_ref }} " >> $GITHUB_ENV
61
+ echo "BRANCH=$BASE_REF " >> $GITHUB_ENV
60
62
- name : set SDK Branch if not pull request
63
+ env :
64
+ REF_NAME : ${{ github.ref_name }}
61
65
if : ${{ github.event_name != 'pull_request' }}
62
66
run : |
63
- echo "BRANCH=${{ github.ref_name }} " >> $GITHUB_ENV
67
+ echo "BRANCH=$REF_NAME " >> $GITHUB_ENV
64
68
- id : unit_tests
65
69
env :
66
70
SCHEME : ${{ matrix.scheme }}
You can’t perform that action at this time.
0 commit comments