Skip to content

Commit

Permalink
あといっかいだけだからね?
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyaPeyaPeyang committed Nov 22, 2022
1 parent c8189c2 commit 1f48633
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 1f48633

Please sign in to comment.