From 14a4b863f27851bdc2f0d99772d9a7bfe78bc31e Mon Sep 17 00:00:00 2001 From: jyje Date: Sat, 7 Sep 2024 21:55:37 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20ci:=20refactor=20ci=20(--no-ci)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fix env export --- .github/workflows/ci-main.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-main.yaml b/.github/workflows/ci-main.yaml index 111eb9d..c39406c 100644 --- a/.github/workflows/ci-main.yaml +++ b/.github/workflows/ci-main.yaml @@ -40,7 +40,7 @@ jobs: - name: Check tag format run: | - TAG_NAME="${{ env.image_version }}" + export TAG_NAME="${{ env.image_version }}" if ! [[ "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+(\.[0-9]+)?$ ]]; then echo "Tag $TAG_NAME does not meet the required format 'vX.Y.Z'." exit 1 @@ -48,8 +48,8 @@ jobs: - name: Check a tag from list run: | - TAG_NAME="${{ env.image_version }}" - TAG_EXISTS=$(git tag --list $TAG_NAME) + export TAG_NAME="${{ env.image_version }}" + export TAG_EXISTS=$(git tag --list $TAG_NAME) if [ -n "$TAG_EXISTS" ]; then echo "Tag $TAG_NAME already exists." exit 1