Skip to content

Commit

Permalink
feat(profile): add bump profile input
Browse files Browse the repository at this point in the history
  • Loading branch information
sergejomon committed Oct 30, 2024
1 parent 5ae1660 commit ded5295
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 8 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ inputs:
commit specification but do not create any commit.
required: false
default: 'false'
profile:
description: 'Specify bump profile'
required: false
default: null

outputs:
version:
Expand Down Expand Up @@ -70,4 +74,7 @@ runs:
${{ inputs.release }} \
${{ inputs.git-user }} \
${{ inputs.git-user-email }} \
${{ inputs.verify }}
${{ inputs.verify }} \
${{ inputs.profile }}
8 changes: 6 additions & 2 deletions cog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ if [ "${CHECK}" = "true" ]; then
fi
fi

if [ "${RELEASE}" = "true" ]; then
cog bump --auto || exit 1
if [ "$RELEASE" = "true" ]; then
if [ "$PROFILE" != null ]; then
cog bump --auto -h $PROFILE || exit 1
else
cog bump --auto || exit 1
fi
VERSION="$(git describe --tags "$(git rev-list --tags --max-count=1)")"
echo "version=$VERSION" >> $GITHUB_OUTPUT
fi
Expand Down

0 comments on commit ded5295

Please sign in to comment.