Skip to content

Commit 050aadb

Browse files
committed
ci: guard manual auto-release tag name
1 parent 48029e9 commit 050aadb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/auto-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ jobs:
4141
4242
- name: Extract tag name
4343
id: tag
44-
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
44+
run: |
45+
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
46+
echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
47+
else
48+
echo "TAG_NAME=latest" >> "$GITHUB_OUTPUT"
49+
fi
4550
4651
- name: Build PDF
4752
run: mdpress build --format pdf --output agentic_ai_guide-${{ steps.tag.outputs.TAG_NAME || 'latest' }}.pdf

0 commit comments

Comments
 (0)