Skip to content

Commit

Permalink
escape output
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisPalnitsky committed Mar 16, 2024
1 parent 5cca3c6 commit 2906321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/git-vars/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ runs:
id: vars_step
run: |
echo "::set-output name=sha-short::$(git rev-parse --short=7 HEAD)"
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/} | sed -e 's/[^a-zA-Z0-9._-]/-/g' -e 's/^-//')"

0 comments on commit 2906321

Please sign in to comment.