diff --git a/action.yml b/action.yml index 24a4e2d..1859ca2 100644 --- a/action.yml +++ b/action.yml @@ -2,19 +2,20 @@ name: "Git tag decribe action" author: m.shein@reglab.ru description: "Retrive current tag position " +inputs: {} outputs: git_tag_desc: description: "" - value: ${{ steps.action_extract_git_info.outputs.GIT_TAG_DESC }} + value: ${{ steps.rnd_git_info.outputs.git_tag_desc }} git_branch_name: description: "" - value: ${{ steps.action_extract_git_info.outputs.GIT_BRANCH_NAME }} + value: ${{ steps.rnd_git_info.outputs.git_branch_name }} git_build_type: description: "" - value: ${{ steps.action_extract_git_info.outputs.GIT_BUILD_TYPE }} + value: ${{ steps.rnd_git_info.outputs.git_build_type }} git_sha_short: description: "" - value: ${{ steps.action_extract_git_info.outputs.GIT_SHA_SHORT }} + value: ${{ steps.rnd_git_info.outputs.git_sha_short }} runs: using: "composite" @@ -22,7 +23,7 @@ runs: - name: Extract branch name and tag-description shell: bash - id: action_extract_git_info + id: rnd_git_info run: | set +e echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY" @@ -59,7 +60,7 @@ runs: # Check Tag [ -z "${GIT_TAG_DESC}" ] && GIT_TAG_DESC=$GIT_BRANCH_NAME - # get short tag + # get short tag GIT_SHA_SHORT=$(git rev-parse --short HEAD)" @@ -70,8 +71,8 @@ runs: echo "GIT_SHA_SHORT=$GIT_SHA_SHORT" # export to GITHUB_OUTPUT - echo "GIT_BUILD_TYPE=$GIT_BUILD_TYPE" >> $GITHUB_ENV - echo "GIT_BRANCH_NAME=$GIT_BRANCH_NAME" >> $GITHUB_ENV - echo "GIT_TAG_DESC=$GIT_TAG_DESC" >> $GITHUB_ENV - echo "GIT_SHA_SHORT=$GIT_SHA_SHORT" >> $GITHUB_ENV + echo "git_build_type=$GIT_BUILD_TYPE" >> $GITHUB_ENV + echo "git_branch_name=$GIT_BRANCH_NAME" >> $GITHUB_ENV + echo "git_tag_desc=$GIT_TAG_DESC" >> $GITHUB_ENV + echo "git_sha_short=$GIT_SHA_SHORT" >> $GITHUB_ENV