Merge pull request #8619 from Azure/fix-existing-pr-artifacts

Fix existing pr body update on artifacts generation
This commit is contained in:
v-amolpatil 2023-07-24 22:39:02 +05:30 коммит произвёл GitHub
Родитель b8e674e700 a2bc366c0c
Коммит 066448a156
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 12 добавлений и 9 удалений

2
.github/workflows/checkAutomatedPR.yaml поставляемый
Просмотреть файл

@ -25,7 +25,7 @@ jobs:
- shell: pwsh
id: ValidateAutomatedPR
run: |
$prBodyContent = "${{ github.event.issue.body }}"
$prBodyContent = ${{ github.event.issue.body }}
$isAutomatedPR = $false
if ($prBodyContent -like '*Automation have successfully*')
{

19
.github/workflows/package-command.yaml поставляемый
Просмотреть файл

@ -171,11 +171,13 @@ jobs:
}
else
{
$title = $response.title
$body = $response.body
Write-Host "Existing PR Title is $title"
$title = "" + $response.title
$body = "" + $response.body
Write-Output "existingPRTitle=$title" >> $env:GITHUB_OUTPUT
Write-Output "existingPRBody=$body" >> $env:GITHUB_OUTPUT
Write-Output "existingPRBody<<EOF" >> $env:GITHUB_OUTPUT
Write-Output $body >> $env:GITHUB_OUTPUT
Write-Output "EOF" >> $env:GITHUB_OUTPUT
}
}
else
@ -214,8 +216,8 @@ jobs:
CURRENT_BRANCH_NAME: "${{ github.event.client_payload.pull_request.head.ref && github.event.client_payload.pull_request.head.ref || github.event.client_payload.pullRequestBranchName }}"
RUNID: "${{ github.event.client_payload.github.runId }}"
APPINSIGHTS: "${{ vars.APPINSIGHTS }}"
EXISITING_PR_TITLE: "${{ needs.getPullRequestInfo.outputs.existingPRTitle }}"
EXISITING_PR_BODY: "${{ needs.getPullRequestInfo.outputs.existingPRBody }}"
EXISTING_PR_TITLE: "${{ needs.getPullRequestInfo.outputs.existingPRTitle }}"
EXISTING_PR_BODY: ${{ needs.getPullRequestInfo.outputs.existingPRBody }}
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- uses: actions/download-artifact@e9ef242655d12993efdcda9058dee2db83a2cb9b
@ -237,8 +239,9 @@ jobs:
commit-message: added/updated package to pr
signoff: false
branch: "${{ env.CURRENT_BRANCH_NAME }}" # EXISTING BRANCH NAME
title: "${{ env.EXISITING_PR_TITLE }}"
body: "${{ env.EXISITING_PR_BODY }}"
title: "${{ env.EXISTING_PR_TITLE }}"
body: |
${{ env.EXISTING_PR_BODY }}
- shell: pwsh
id: createPREvents