From 1f48633af3d8bfed05767da657d7d8075e07c35e Mon Sep 17 00:00:00 2001 From: Peyang Date: Tue, 22 Nov 2022 21:32:22 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=82=E3=81=A8=E3=81=84=E3=81=A3=E3=81=8B?= =?UTF-8?q?=E3=81=84=E3=81=A0=E3=81=91=E3=81=A0=E3=81=8B=E3=82=89=E3=81=AD?= =?UTF-8?q?=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/tagging.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tagging.yml b/.github/workflows/tagging.yml index e58258995638..7275844c430c 100644 --- a/.github/workflows/tagging.yml +++ b/.github/workflows/tagging.yml @@ -19,7 +19,14 @@ jobs: id: tag-version run: | echo "::set-output name=tag::$(git describe --tags --abbrev=0)" - echo "::set-output name=compare::$(node -p -e "require('semver').gt('${{ steps.package-version.outputs.version }}', '${{ steps.tag-version.outputs.tag }}')")" + version=$(node -p -e "require('./package.json').version") + tag=$(git describe --tags --abbrev=0) + if [[ $version == $tag ]]; then + echo "::set-output name=compare::true" + else + echo "::set-output name=compare::false" + fi + - name: Create tag if versions have upgraded if: steps.tag-version.outputs.compare == 'true' run: |