From ee56bf31124ebe1116765402124ffa8ada14117b Mon Sep 17 00:00:00 2001 From: MUsoftware Date: Tue, 13 May 2025 08:13:40 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A4=91=EB=B3=B5=EB=90=9C=20=ED=83=9C?= =?UTF-8?q?=EA=B7=B8=20=EC=83=9D=EC=84=B1=EC=9C=BC=EB=A1=9C=20=ED=94=84?= =?UTF-8?q?=EB=A1=9C=EB=8D=95=EC=85=98=20=EB=B0=B0=ED=8F=AC=EA=B0=80=20?= =?UTF-8?q?=EC=8B=A4=ED=8C=A8=ED=95=A0=20=EC=88=98=20=EC=9E=88=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a2ea4a6..c6a0f08 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,7 +25,7 @@ jobs: env: API_STAGE: ${{ github.event_name == 'workflow_dispatch' && inputs.WORKFLOW_PHASE || 'dev' }} - BUMP_RULE: ${{ github.event_name == 'workflow_dispatch' && '' || '--stage' }} + BUMP_RULE: ${{ (github.event_name == 'workflow_dispatch' && inputs.WORKFLOW_PHASE || 'dev') == 'dev' && '--stage' || '' }} AWS_ECR_REGISTRY: ${{ github.event_name == 'workflow_dispatch' && secrets.AWS_ECR_PROD_URL || secrets.AWS_ECR_DEV_URL }} steps: @@ -62,7 +62,7 @@ jobs: - name: Get current date, repo name and release tag version id: info run: | - LATEST_TAG=$(git tag -l --sort=-version:refname | head -n 1) + LATEST_TAG=$(git tag -l --sort=-creatordate | head -n 1) echo "::set-output name=TAG::$(python ./.github/scripts/get_new_version.py --current=$LATEST_TAG ${{ env.BUMP_RULE }})" echo "::set-output name=date::$(date +'%Y-%m-%d_%H:%M:%S')" echo "::set-output name=repository_name::$(echo ${{ github.repository }} | sed -e 's/${{ github.repository_owner }}\///')" @@ -139,7 +139,7 @@ jobs: "type": "header", "text": { "type": "plain_text", - "text": "${{ steps.info.outputs.TAG }} 버전 배포 실패 :rotating_light: (${{ job.status }})", + "text": "${{ steps.info.outputs.repository_name }} ${{ steps.info.outputs.TAG }} 버전 배포 실패 :rotating_light: (${{ job.status }})", "emoji": true } }, @@ -171,7 +171,7 @@ jobs: "type": "header", "text": { "type": "plain_text", - "text": "${{ steps.info.outputs.TAG }} 버전 배포 성공 :tada:", + "text": "${{ steps.info.outputs.repository_name }} ${{ steps.info.outputs.TAG }} 버전 배포 성공 :tada:", "emoji": true } },