We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bcc83d commit a601794Copy full SHA for a601794
1 file changed
.github/workflows/auto-release.yml
@@ -46,7 +46,12 @@ jobs:
46
47
- name: Extract tag name
48
id: tag
49
- run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
+ run: |
50
+ if [[ "$GITHUB_REF" == refs/tags/* ]]; then
51
+ echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
52
+ else
53
+ echo "TAG_NAME=latest" >> "$GITHUB_OUTPUT"
54
+ fi
55
56
- name: Build PDF
57
run: mdpress build --format pdf --output docker_practice-${{ steps.tag.outputs.TAG_NAME || 'latest' }}.pdf
0 commit comments