From 440b290b432d28c6a32d29f6fe90aa38564e5dfe Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Thu, 22 Jan 2026 16:20:53 -0700 Subject: [PATCH 1/2] Enable prefixing version with 'v', fix bug Signed-off-by: Andy Bavier --- .github/workflows/tag-github.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tag-github.yml b/.github/workflows/tag-github.yml index bc72af0..713c8b3 100644 --- a/.github/workflows/tag-github.yml +++ b/.github/workflows/tag-github.yml @@ -6,6 +6,12 @@ name: Tag GitHub on: workflow_call: + inputs: + add_v: + description: "Whether to add a v prefix to the version tag" + type: boolean + required: false + default: false outputs: changed: description: "Whether the VERSION file changed" @@ -44,6 +50,9 @@ jobs: validate="^[0-9]+\.[0-9]+\.[0-9]+$" if [[ $version =~ $validate ]]; then echo "changed=true" >> $GITHUB_OUTPUT + if [[ "${{ inputs.add_v }}" == "true" ]]; then + version="v${version}" + fi echo "version=$version" >> $GITHUB_OUTPUT else echo "Version change not for release" @@ -53,6 +62,6 @@ jobs: if: steps.version-change.outputs.changed == 'true' uses: onosproject/.github/.github/actions/create-github-release-action@main with: - version: ${{ steps.version-change.outputs.version }} + VERSION: ${{ steps.version-change.outputs.version }} env: GH_TOKEN: ${{ secrets.GH_ONOS_PAT }} From fad4a6e22b3715de6a99c20b3794a9316326b53a Mon Sep 17 00:00:00 2001 From: Andy Bavier Date: Thu, 22 Jan 2026 16:22:36 -0700 Subject: [PATCH 2/2] Use GITHUB_TOKEN Signed-off-by: Andy Bavier --- .github/workflows/tag-github.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tag-github.yml b/.github/workflows/tag-github.yml index 713c8b3..daf0409 100644 --- a/.github/workflows/tag-github.yml +++ b/.github/workflows/tag-github.yml @@ -64,4 +64,4 @@ jobs: with: VERSION: ${{ steps.version-change.outputs.version }} env: - GH_TOKEN: ${{ secrets.GH_ONOS_PAT }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}