From 0caa4c06603cc2c1ef37c574b2e49e6f4e8b6b78 Mon Sep 17 00:00:00 2001 From: Soaibuzzaman Date: Mon, 7 Oct 2024 23:28:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3Manually=20trigger=20the=20ci=20wor?= =?UTF-8?q?kflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 188cf28..9f98126 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,10 @@ name: CI for GHCR on: workflow_dispatch: # Manually trigger the workflow + inputs: + tags: + description: "VITE_FMP_VERSION (Tag)" + required: true push: tags: - "v*.*.*" @@ -17,7 +21,7 @@ jobs: id: get_latest_tag run: | if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`) + LATEST_TAG="${{ github.event.inputs.tags }}" echo "::set-output name=tag::$LATEST_TAG" else TAG_NAME=${GITHUB_REF#refs/tags/}