Skip to content

Commit 2e59692

Browse files
🐛 Fix voor deploy proces
1 parent 814b76b commit 2e59692

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ jobs:
2828
id: tag
2929
run: |
3030
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
31-
echo "name=${{ github.event.inputs.tag }}" >> "$GITHUB_OUTPUT"
32-
echo "ref=refs/tags/${{ github.event.inputs.tag }}" >> "$GITHUB_OUTPUT"
31+
RAW_TAG="${{ github.event.inputs.tag }}"
32+
echo "ref=refs/tags/$RAW_TAG" >> "$GITHUB_OUTPUT"
3333
else
34-
echo "name=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
34+
RAW_TAG="${GITHUB_REF#refs/tags/}"
3535
echo "ref=$GITHUB_REF" >> "$GITHUB_OUTPUT"
3636
fi
37+
SAFE_NAME=$(echo "$RAW_TAG" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9-]/-/g' | sed 's/^-//;s/-$//')
38+
echo "name=$SAFE_NAME" >> "$GITHUB_OUTPUT"
3739
3840
- name: Lowercase image name
3941
run: echo "IMAGE_NAME=${GITHUB_REPOSITORY,,}" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)