mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 09:33:10 -07:00
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:
parent
58b62bfced
commit
84eb636471
1 changed files with 11 additions and 0 deletions
11
.github/workflows/aur-release.yml
vendored
11
.github/workflows/aur-release.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue