branch-names/entrypoint.sh

8 lines
244 B
Bash
Raw Normal View History

2020-12-11 21:15:40 +08:00
#!/usr/bin/env bash
set -e
2020-12-11 21:23:56 +08:00
echo "::set-output name=base_ref_branch::${INPUT_BASE_REF/refs\/heads\//}"
echo "::set-output name=head_ref_branch::${INPUT_HEAD_REF/refs\/heads\//}"
echo "::set-output name=ref_branch::${INPUT_REF/refs\/heads\//}"