Skip to content

Commit

Permalink
Use GITHUB_REF_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
LAGonauta committed Dec 12, 2023
1 parent cc69334 commit f82cea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fetch-depth: 0

- name: Get branch name
run: echo "BranchName=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $env:GITHUB_ENV
run: echo "BranchName=${GITHUB_REF_NAME}" >> $env:GITHUB_ENV

- name: Get commit hash
run: echo "CommitHash=$(git rev-parse --short=7 HEAD)" >> $env:GITHUB_ENV
Expand Down

0 comments on commit f82cea1

Please sign in to comment.