From 44619c690e0f1c06c8ba39ab6010069a14ec35a1 Mon Sep 17 00:00:00 2001 From: Muzahidul Islam <129880873+muzahidul-opti@users.noreply.github.com> Date: Tue, 14 May 2024 22:18:33 +0600 Subject: [PATCH] Update android.yml --- .github/workflows/android.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 5d0cc830..7e59f70f 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -41,9 +41,11 @@ jobs: - name: set SDK Branch if PR if: ${{ github.event_name == 'pull_request' }} + env: + HEAD_REF: ${{ github.head_ref }} run: | - echo "SDK_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV - echo "TRAVIS_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV + echo "SDK_BRANCH=${{ HEAD_REF }}" >> $GITHUB_ENV + echo "TRAVIS_BRANCH=${{ HEAD_REF }}" >> $GITHUB_ENV - name: set SDK Branch if not pull request if: ${{ github.event_name != 'pull_request' }} run: |