Fix AUR release workflow: add fetch-depth and tag verification

- Add fetch-depth: 0 to ensure all tags are available
- Add tag verification step to provide better error messages
- Helps debug checkout failures when tags don't exist
This commit is contained in:
lone-cloud 2025-09-23 22:55:35 -07:00
parent 58b62bfced
commit 84eb636471

View file

@ -37,6 +37,17 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
ref: ${{ inputs.tag }} ref: ${{ inputs.tag }}
fetch-depth: 0
- name: Verify tag exists
run: |
if ! git rev-parse --verify "${{ inputs.tag }}" >/dev/null 2>&1; then
echo "❌ Tag '${{ inputs.tag }}' does not exist"
echo "Available tags:"
git tag -l | tail -10
exit 1
fi
echo "✅ Tag '${{ inputs.tag }}' exists"
- name: Get release information - name: Get release information
id: release_info id: release_info