Skip to content

Commit

Permalink
wip print more debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rpmcginty committed Mar 2, 2024
1 parent 888fd10 commit 56c2829
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/actions/bump-version-tag/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ runs:
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
DEFAULT_BUMP: ${{ inputs.bump_type }}
DEFAULT_BUMP: ${{ inputs.bump_type || 'none' }}
MAJOR_STRING_TOKEN: '(MAJOR)'
MINOR_STRING_TOKEN: '(MINOR)'
PATCH_STRING_TOKEN: '(PATCH)'
Expand All @@ -63,7 +63,7 @@ runs:
patch=$(echo $new_version | cut -d. -f3)
increment=0
version_type=${{ steps.bump-version-tag.outputs.part }}
previous_version=$(git describe --tags --abbrev=0)
previous_version=$(git describe --tags --abbrev=0 | sed 's/^v//')
echo "major: $major"
echo "minor: $minor"
Expand All @@ -82,7 +82,13 @@ runs:
echo "version_tag=$new_tag" >> $GITHUB_OUTPUT
echo "version_type=$version_type" >> $GITHUB_OUTPUT
echo "previous_version=$previous_version" >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
- name : Debug
run: |
cat $GITHUB_OUTPUT
echo "major=${{ steps.bump-version-tag.outputs.major }}"
shell: bash

# Currently not using this Version bumping tool, but considering it for the future.
# The main limitation is being able to override the default bump type even
# if there are no commits.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:

workflow_dispatch:
inputs:
target_version:
description: 'Target Version (e.g. 1.2.3). This is the version to bump to.'
required: false
default: 'N/A'
bump_type:
description: 'Version Bump Type'
type: choice
Expand Down

0 comments on commit 56c2829

Please sign in to comment.