[Ci] Change the package upgrade PR title (#16674)
* [Ci] Change the package upgrade PR title * Change the branchname variable, and change the body
This commit is contained in:
parent
11e9f7c0de
commit
28f011a2f0
@ -161,8 +161,8 @@ stages:
|
|||||||
git branch -u remote/$BRANCH_NAME
|
git branch -u remote/$BRANCH_NAME
|
||||||
|
|
||||||
echo $GIT_PASSWORD | gh auth login --with-token
|
echo $GIT_PASSWORD | gh auth login --with-token
|
||||||
TITLE="Upgrade SONiC Versions"
|
TITLE="[${SOURCE_BRANCH#refs/heads/}] Upgrade SONiC package Versions"
|
||||||
BODY="Upgrade SONiC Versions"
|
BODY=$TITLE
|
||||||
RET=0
|
RET=0
|
||||||
if ! gh pr create -t "$TITLE" -b "$BODY" -B $(Build.SourceBranch) -R $(Build.Repository.Name) > pr.log 2>&1; then
|
if ! gh pr create -t "$TITLE" -b "$BODY" -B $(Build.SourceBranch) -R $(Build.Repository.Name) > pr.log 2>&1; then
|
||||||
if ! grep -q "already exists" pr.log; then
|
if ! grep -q "already exists" pr.log; then
|
||||||
|
Loading…
Reference in New Issue
Block a user