mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
sanitized and lowercased the prerelease tag
Cura won't show the full prerelease tag in the splash screen if there is a `-` in it. also versioning should all be lowercase. Contributes to CURA-9365
This commit is contained in:
parent
e2a3b1ad15
commit
4c6985b0d9
1 changed files with 8 additions and 1 deletions
9
.github/workflows/conan-recipe-version.yml
vendored
9
.github/workflows/conan-recipe-version.yml
vendored
|
@ -52,7 +52,14 @@ jobs:
|
|||
id: prereleasetag
|
||||
run: |
|
||||
long_pre_release_tag=${{ steps.git-tool.outputs.PreReleaseTag }}
|
||||
echo "::set-output name=PreReleaseTag::${long_pre_release_tag:0:9}"
|
||||
sanitized_pre_release_tag="${long_pre_release_tag//-/_}"
|
||||
if [ "${{ github.event_name == 'merge' }}" = "true" ]; then
|
||||
echo $sanitized_pre_release_tag | awk '{print "::set-output name=PreReleaseTag::m_"substr(tolower($0),5,9)}'
|
||||
elif [ "${{ github.event_name == 'pull_request' }}" = "true" ]; then
|
||||
echo $sanitized_pre_release_tag | awk '{print "::set-output name=PreReleaseTag::pr_"substr(tolower($0),5,9)}'
|
||||
else
|
||||
echo $sanitized_pre_release_tag | awk '{print "::set-output name=PreReleaseTag::"substr(tolower($0),0,9)}'
|
||||
fi
|
||||
|
||||
- id: get-conan-broadcast-data
|
||||
name: Get Conan broadcast data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue