mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 07:06:00 +08:00
Use full pr number
Contributes to CURA-9365
This commit is contained in:
parent
0d04f3e517
commit
f9b7d74050
4
.github/workflows/conan-recipe-version.yml
vendored
4
.github/workflows/conan-recipe-version.yml
vendored
@ -81,8 +81,8 @@ jobs:
|
|||||||
# Event triggered by a pull_request
|
# Event triggered by a pull_request
|
||||||
echo ${{ github.repository_owner }} | awk '{print "::set-output name=user::"tolower($0)}'
|
echo ${{ github.repository_owner }} | awk '{print "::set-output name=user::"tolower($0)}'
|
||||||
branch=${{ github.ref_name }}
|
branch=${{ github.ref_name }}
|
||||||
sanitized_branch=$(echo $branch | egrep -o '^[^/]+')
|
sanitized_branch=$(echo pr_$branch | egrep -o '^[^/]+')
|
||||||
echo $sanitized_branch | awk '{print "::set-output name=channel::"substr(tolower($0),0,9)}'
|
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 }}'
|
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
|
else
|
||||||
# commits on other branches are considered unstable and for development purposes only
|
# commits on other branches are considered unstable and for development purposes only
|
||||||
|
Loading…
x
Reference in New Issue
Block a user