From 8831a33237d920a831d6e91345b6d78bb5f9ce62 Mon Sep 17 00:00:00 2001 From: josesimoes Date: Wed, 12 Jun 2024 14:51:13 +0100 Subject: [PATCH] Work CI-CD - Add workflow to move main version tag after release. --- .github/workflows/update-main-version.yml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/update-main-version.yml diff --git a/.github/workflows/update-main-version.yml b/.github/workflows/update-main-version.yml new file mode 100644 index 0000000..1e020d8 --- /dev/null +++ b/.github/workflows/update-main-version.yml @@ -0,0 +1,28 @@ +# Copyright (c) .NET Foundation and Contributors +# See LICENSE file in the project root for full license information. + +# This workflow moves the main version tag to the latest commit in the branch. +# To be manually triggered upon a new release. + +name: Update Main Version + +on: + workflow_dispatch: + inputs: + target: + description: The tag to move the major version to + required: true + major_version: + type: choice + description: The major version to update + options: + - v1 + +jobs: + update-dependencies: + name: nanoFramework + uses: nanoframework/nf-tools/.github/workflows/update-main-version.yml@main + secrets: inherit + with: + target: ${{ github.event.inputs.target }} + major_version: ${{ github.event.inputs.major_version }}