Skip to content

Commit 51951a2

Browse files
committed
Use latest tag for manual workflow triggers
1 parent 93902d3 commit 51951a2

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/aur-update.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ on:
55
tags:
66
- "v[0-9]+.[0-9]+.[0-9]+"
77
workflow_dispatch:
8-
inputs:
9-
tag:
10-
description: 'Release tag (e.g., v0.16.1)'
11-
required: true
12-
type: string
138

149
jobs:
1510
update-aur:
@@ -25,7 +20,9 @@ jobs:
2520
run: |
2621
# Determine the tag based on trigger type
2722
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
28-
TAG="${{ inputs.tag }}"
23+
# Get the latest tag when manually triggered
24+
git fetch --tags
25+
TAG=$(git describe --tags --abbrev=0)
2926
else
3027
TAG="${GITHUB_REF_NAME}"
3128
fi

0 commit comments

Comments
 (0)