Skip to content

Commit

Permalink
Correction variable GIT_BRANCH
Browse files Browse the repository at this point in the history
  • Loading branch information
assinie committed Oct 3, 2021
1 parent 3801f5d commit 569e677
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ jobs:
echo "::set-output name=VERSION::$(cat VERSION)"
echo "::set-output name=REPO_NAME::${GITHUB_REPOSITORY##*/}"
- name: Get branch name
if: github.event_name != 'pull_request'
run: echo "GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
# run: echo "::set-env name=GIT_BRANCH::$(echo ${GITHUB_REF##*/})"

- name: Get branch name on pull request
if: github.event_name == 'pull_request'
run: echo "GIT_BRANCH=${GITHUB_HEAD_REF}" >> GITHUB_ENV
#run: echo "::set-env name=GIT_BRANCH::$(echo ${GITHUB_HEAD_REF})"

- name: Install sdk
uses: actions/cache@v2
with:
Expand Down

0 comments on commit 569e677

Please sign in to comment.