Skip to content

Commit dfad59b

Browse files
Fix getting github ref in bash script in CI
1 parent 9bb6789 commit dfad59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
id: get_branch_name
3131
if: github.ref_type == 'tag'
3232
run: |
33-
export BRANCH_NAME=$(git log -1 --format='%D' $env:GITHUB_REF | | sed -e 's/.*origin\/\(.*\),.*/\1/')
33+
export BRANCH_NAME=$(git log -1 --format='%D' $GITHUB_REF | | sed -e 's/.*origin\/\(.*\),.*/\1/')
3434
echo ::set-output name=branch_name::${BRANCH_NAME}
3535
shell: bash
3636
- name: Fail if tag is not on 'master' branch

0 commit comments

Comments
 (0)