fix input variable syntax [2]

This commit is contained in:
Nikita Galaiko 2023-02-20 14:57:58 +01:00
parent 2dae707096
commit 1706653085
No known key found for this signature in database
GPG Key ID: EBAB54E845BA519D
2 changed files with 4 additions and 4 deletions

View File

@ -2,10 +2,10 @@ name: "Publish"
on:
workflow_dispatch:
inputs:
type:
bump:
type: choice
required: true
description: Release type
description: update type
options:
- undefined
- patch
@ -44,7 +44,7 @@ jobs:
- name: Set env variable with version
run: |
CURRENT_VERSION="$(curl --silent "https://app.gitbutler.com/releases" | jq -r '.version')"
NEXT_VERSION=$(./scripts/next.sh "$CURRENT_VERSION" "${{ inputs.print_tags }}")
NEXT_VERSION=$(./scripts/next.sh "$CURRENT_VERSION" "${{ inputs.bump }}")
echo "version=$NEXT_VERSION-${{ github.run_number }}" >> $GITHUB_ENV
- name: Build binary

View File

@ -11,7 +11,7 @@ function help() {
echo 1>&$to
echo "where:" 1>&$to
echo " <version> is a current semver version." 1>&$to
echo " <bump> is either patch, major or 'minor'." 1>&$to
echo " <bump> is either 'patch', 'major' or 'minor'." 1>&$to
}
function error() {