mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 22:23:50 +08:00
Merge pull request #79 from loarca/main
Update 'current_branch' output to strip tag prefix
This commit is contained in:
commit
f3dbd2f628
@ -55,7 +55,7 @@ runs:
|
||||
fi
|
||||
else
|
||||
REF=${{ github.ref }}
|
||||
REF_BRANCH=${REF/refs\/tags\//}
|
||||
REF_BRANCH=${REF/refs\/tags\/${{ inputs.strip_tag_prefix }}/}
|
||||
echo "::set-output name=current_branch::$REF_BRANCH"
|
||||
fi
|
||||
shell: bash
|
||||
|
Loading…
Reference in New Issue
Block a user