diff --git a/.github/workflows/aur-update.yml b/.github/workflows/aur-update.yml index fb0c335..306a24d 100644 --- a/.github/workflows/aur-update.yml +++ b/.github/workflows/aur-update.yml @@ -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