add bump inputs for create git tag to workflow

This commit is contained in:
Lifailon
2026-02-06 01:56:15 +03:00
parent 2ab51156e4
commit 0a2de29f14
+18 -10
View File
@@ -4,9 +4,17 @@ on:
workflow_dispatch:
inputs:
Tag:
description: 'Create git tag for patch version'
description: 'Create GitHub tag for new version'
default: false
type: boolean
Bump:
description: 'Select bump for tag'
default: 'patch'
type: choice
options:
- 'patch'
- 'minor '
- 'major'
Upload:
description: 'Upload artifacts'
default: false
@@ -28,6 +36,15 @@ jobs:
with:
fetch-depth: 0
- name: Create git tag for patch version
if: ${{ github.event.inputs.Tag == 'true' }}
id: tag
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: ${{ github.event.inputs.Bump }}
tag_prefix: ""
- name: Install Go
uses: actions/setup-go@v6
with:
@@ -42,15 +59,6 @@ jobs:
- name: Upload changelog to summary
run: cat dist/CHANGELOG.md >> $GITHUB_STEP_SUMMARY
- name: Create git tag for patch version
if: ${{ github.event.inputs.Tag == 'true' }}
id: tag
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: patch
tag_prefix: ""
- name: Go release publish
if: ${{ github.event_name == 'push' }}
uses: goreleaser/goreleaser-action@v6