8000 Update android.yml (#478) · optimizely/android-sdk@b5219f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit b5219f4

Browse files
Update android.yml (#478)
1 parent 0b6f346 commit b5219f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/android.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ jobs:
4141

4242
- name: set SDK Branch if PR
4343
if: ${{ github.event_name == 'pull_request' }}
44+
env:
45+
HEAD_REF: ${{ github.head_ref }}
4446
run: |
45-
echo "SDK_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
46-
echo "TRAVIS_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
47+
echo "SDK_BRANCH=${{ HEAD_REF }}" >> $GITHUB_ENV
48+
echo "TRAVIS_BRANCH=${{ HEAD_REF }}" >> $GITHUB_ENV
4749
- name: set SDK Branch if not pull request
4850
if: ${{ github.event_name != 'pull_request' }}
4951
run: |

0 commit comments

Comments
 (0)
0