mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 03:11:47 +08:00
Detect pull request id in deployment
This commit is contained in:
parent
f8e00b6e1b
commit
dc8caeff5a
@ -30,7 +30,15 @@ if [ -z ${current_branch+x} ]; then
|
||||
current_branch="unknown"
|
||||
fi
|
||||
|
||||
if [ "$current_branch" == "master" ] && [ "$APPVEYOR_PULL_REQUEST_NUMBER" == "" ]; then
|
||||
if [ ! -z ${GITHUB_PR_NUMBER+x} ]; then
|
||||
PR_ID=$GITHUB_PR_NUMBER
|
||||
fi
|
||||
if [ ! -z ${APPVEYOR_PULL_REQUEST_NUMBER+x} ]; then
|
||||
PR_ID=$APPVEYOR_PULL_REQUEST_NUMBER
|
||||
fi
|
||||
|
||||
|
||||
if [ "$current_branch" == "master" ] && [ -z ${PR_ID} ]; then
|
||||
# If building master, goes in slic3r_dev or slic3r, depending on whether or not this is a tagged build
|
||||
if [ -z ${TAGGED+x} ]; then
|
||||
SLIC3R_PKG=slic3r_dev
|
||||
@ -40,8 +48,9 @@ if [ "$current_branch" == "master" ] && [ "$APPVEYOR_PULL_REQUEST_NUMBER" == ""
|
||||
version=$SLIC3R_BUILD_ID
|
||||
else
|
||||
# If building a branch, put the package somewhere else.
|
||||
echo "Delploying pull request $PR_ID"
|
||||
SLIC3R_PKG=Slic3r_Branches
|
||||
version=$SLIC3R_BUILD_ID-$current_branch
|
||||
version=${SLIC3R_BUILD_ID}-PR${PR_ID}
|
||||
fi
|
||||
|
||||
file=$1
|
||||
|
Loading…
x
Reference in New Issue
Block a user