mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 20:05:58 +08:00
sanitize versioning naming of pr events
Contributes to CURA-9365
This commit is contained in:
parent
cda4cdf66c
commit
70c4125742
7
.github/workflows/conan-recipe-version.yml
vendored
7
.github/workflows/conan-recipe-version.yml
vendored
@ -77,6 +77,13 @@ 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
|
||||
# Event triggered by a pull_request
|
||||
echo ${{ github.repository_owner }} | awk '{print "::set-output name=user::"tolower($0)}'
|
||||
branch=${{ github.ref_name }}
|
||||
sanitized_branch=$(echo $branch | egrep -o '^[^/]+')
|
||||
echo $sanitized_branch | awk '{print "::set-output name=channel::"substr(tolower($0),0,9)}'
|
||||
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 }}'
|
||||
else
|
||||
# commits on other branches are considered unstable and for development purposes only
|
||||
# Use the Cura branch naming scheme CURA-1234_foo_bar
|
||||
|
Loading…
x
Reference in New Issue
Block a user