Skip to content

Commit

Permalink
Merge pull request #6 from lhstrh/minor-tweaks
Browse files Browse the repository at this point in the history
Use versions instead of tags
  • Loading branch information
lhstrh authored May 1, 2022
2 parents 4e7bf86 + 42c8a9e commit 2cc8f0a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,16 @@ runs:
- name: Produce increments
id: incr
run: |
echo "::set-output name=patch::$(semver bump patch ${{ steps.find.outputs.tag }})"
echo "::set-output name=minor::$(semver bump minor ${{ steps.find.outputs.tag }})"
echo "::set-output name=major::$(semver bump major ${{ steps.find.outputs.tag }})"
echo "::set-output name=prerelease::$(semver bump prerel ${{ inputs.prerelease }} ${{ steps.find.outputs.tag }})"
echo "::set-output name=release::$(semver bump release ${{ steps.find.outputs.tag }})"
echo "::set-output name=patch::$(semver bump patch ${{ steps.cur.outputs.ver }})"
echo "::set-output name=minor::$(semver bump minor ${{ steps.cur.outputs.ver }})"
echo "::set-output name=major::$(semver bump major ${{ steps.cur.outputs.ver }})"
echo "::set-output name=prerelease::$(semver bump prerel ${{ inputs.prerelease }} ${{ steps.cur.outputs.ver }})"
echo "::set-output name=release::$(semver bump release ${{ steps.cur.outputs.ver }})"
shell: bash
- name: Produce build increment if a build string was given
id: build
run: |
echo "::set-output name=incr::$(semver bump build ${{ inputs.build }} ${{ steps.find.outputs.tag }})"
echo "::set-output name=incr::$(semver bump build ${{ inputs.build }} ${{ steps.cur.outputs.ver }})"
shell: bash
if: ${{ inputs.build != '' }}
- name: Produce version bump (if requested)
Expand Down

0 comments on commit 2cc8f0a

Please sign in to comment.