GH Action/create-tag: allow passing the version when run manually

Modify the action to allow passing the version when run manually. This
will be useful in the future once we branch-off a `rhel-x.y` branch to
backport a fix and will be doing the first "dot" release from such
branch.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2025-04-01 13:11:25 +02:00 committed by Simon de Vlieger
parent c77ca66191
commit a1c0edd71d

View file

@ -3,6 +3,11 @@ name: "Create and push release tag"
on:
workflow_dispatch:
inputs:
version:
description: 'Version to tag. Useful for making the first "dot" release from a rhel-x.y branch.'
required: false
default: ""
schedule:
- cron: "0 8 * * 3"
@ -22,3 +27,4 @@ jobs:
token: "${{ secrets.SCHUTZBOT_GITHUB_ACCESS_TOKEN }}"
username: "imagebuilder-bot"
email: "imagebuilder-bots+imagebuilder-bot@redhat.com"
version: ${{ github.event.inputs.version }}