Skip to content

Commit

Permalink
🐳Manually trigger the ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
soaibsafi committed Oct 7, 2024
1 parent 8864d31 commit 0caa4c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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*.*.*"
Expand All @@ -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/}
Expand Down

0 comments on commit 0caa4c0

Please sign in to comment.