mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-24 03:53:51 +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
|
fi
|
||||||
else
|
else
|
||||||
REF=${{ github.ref }}
|
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"
|
echo "::set-output name=current_branch::$REF_BRANCH"
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Loading…
Reference in New Issue
Block a user