Update action.yml

This commit is contained in:
Shein Maxim
2025-04-18 18:32:53 +05:00
parent 1461d0ed07
commit 09375dd8da

View File

@@ -5,16 +5,13 @@ description: "Retrive current tag position "
outputs:
git_tag_desc:
description: ""
value: ${{ steps.action_extract_git_info.outputs.GIT_TAG_DESC }}
value: ${{ steps.extract_git_info.outputs.GIT_TAG_DESC }}
git_branch_name:
description: ""
value: ${{ steps.action_extract_git_info.outputs.GIT_BRANCH_NAME }}
value: ${{ steps.extract_git_info.outputs.GIT_BRANCH_NAME }}
git_build_type:
description: ""
value: ${{ steps.action_extract_git_info.outputs.GIT_BUILD_TYPE }}
git_sha_short:
description: ""
value: ${{ steps.action_extract_git_info.outputs.GIT_SHA_SHORT }}
value: ${{ steps.extract_git_info.outputs.GIT_BUILD_TYPE }}
runs:
using: "composite"
@@ -22,7 +19,7 @@ runs:
-
name: Extract branch name and tag-description
shell: bash
id: action_extract_git_info
id: extract_git_info
run: |
set +e
echo "GITHUB_REPOSITORY=$GITHUB_REPOSITORY"
@@ -59,18 +56,13 @@ runs:
# Check Tag
[ -z "${GIT_TAG_DESC}" ] && GIT_TAG_DESC=$GIT_BRANCH_NAME
# get short tag
GIT_SHA_SHORT=$(git rev-parse --short HEAD)"
# debug
echo "GIT_TAG_DESC=$GIT_TAG_DESC"
echo "GIT_BUILD_TYPE=$GIT_BUILD_TYPE"
echo "GIT_BRANCH_NAME=$GIT_BRANCH_NAME"
echo "GIT_SHA_SHORT=$GIT_SHA_SHORT"
# export to GITHUB_OUTPUT
echo "GIT_BUILD_TYPE=$GIT_BUILD_TYPE" >> $GITHUB_OUTPUT
echo "GIT_BRANCH_NAME=$GIT_BRANCH_NAME" >> $GITHUB_OUTPUT
echo "GIT_TAG_DESC=$GIT_TAG_DESC" >> $GITHUB_OUTPUT
echo "GIT_SHA_SHORT=$GIT_SHA_SHORT" >> $GITHUB_OUTPUT