mirror of
https://github.com/Ultimaker/Cura.git
synced 2026-02-23 12:55:50 -07:00
Fix for short branch names
Contributes to CURA-9365
This commit is contained in:
parent
6e46d357e5
commit
23234ea15f
1 changed files with 3 additions and 3 deletions
6
.github/workflows/conan-recipe-version.yml
vendored
6
.github/workflows/conan-recipe-version.yml
vendored
|
|
@ -77,7 +77,7 @@ jobs:
|
|||
echo ${{ github.repository_owner }} | awk '{print "::set-output name=user::"tolower($0)}'
|
||||
echo '::set-output name=channel::stable'
|
||||
echo '::set-output name=version::${{ steps.git-tool.outputs.Major }}.${{ steps.git-tool.outputs.Minor }}.${{ steps.git-tool.outputs.Patch }}-${{ steps.git-tool.outputs.PreReleaseLabel }}+${{ steps.git-tool.outputs.BuildMetaData }}'
|
||||
elif [ "${{ github.event_name == 'pull_request' }} ]; then
|
||||
elif [ "${{ github.event_name == 'pull_request' }} = "true" ]; then
|
||||
# Event triggered by a pull_request
|
||||
echo ${{ github.repository_owner }} | awk '{print "::set-output name=user::"tolower($0)}'
|
||||
branch=${{ github.ref_name }}
|
||||
|
|
@ -91,8 +91,8 @@ jobs:
|
|||
# name/major.minor.patch-beta+build@ultimaker/cura_<jira_number>
|
||||
echo ${{ github.repository_owner }} | awk '{print "::set-output name=user::"tolower($0)}'
|
||||
branch=${{ github.ref_name }}
|
||||
sanitized_branch="${branch//-/_}"
|
||||
echo $sanitized_branch | awk '{print "::set-output name=channel::"substr(tolower($0),0,9)}'
|
||||
sanitized_branch=$(echo $branch | egrep -o '^[^/|_]+')
|
||||
echo '::set-output channel=$sanitized_branch'
|
||||
echo '::set-output version=${{ steps.git-tool.outputs.Major }}.${{ steps.git-tool.outputs.Minor }}.${{ steps.git-tool.outputs.Patch }}-${{ steps.git-tool.outputs.PreReleaseLabel }}+${{ steps.git-tool.outputs.BuildMetaData }}'
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue