mirror of
https://github.com/domcyrus/rustnet.git
synced 2026-01-05 21:40:01 -06:00
Use latest tag for manual workflow triggers
This commit is contained in:
9
.github/workflows/aur-update.yml
vendored
9
.github/workflows/aur-update.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user