Skip to content

Commit

Permalink
あといっかいだけだからね? (github#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyaPeyaPeyang authored Nov 22, 2022
2 parents e258341 + 1f48633 commit c90c513
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/tagging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit c90c513

Please sign in to comment.