Use latest tag for manual workflow triggers

This commit is contained in:
Marco Cadetg
2025-11-22 22:20:01 +01:00
parent 93902d3911
commit 51951a2dc0

View File

@@ -5,11 +5,6 @@ on:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g., v0.16.1)'
required: true
type: string
jobs:
update-aur:
@@ -25,7 +20,9 @@ jobs:
run: |
# Determine the tag based on trigger type
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
TAG="${{ inputs.tag }}"
# Get the latest tag when manually triggered
git fetch --tags
TAG=$(git describe --tags --abbrev=0)
else
TAG="${GITHUB_REF_NAME}"
fi