From 21a6cb1528f8a40c2103d47e2ece87507be61b4f Mon Sep 17 00:00:00 2001 From: Yabo Hu Date: Tue, 2 Jul 2024 14:47:59 +0800 Subject: [PATCH] Sync github workflow from main to gen (#25432) * Add label message for "codegen-survey" (#25138) * add label message * Update PrLabeled.ps1 * sync github workflow from main to generation --------- Co-authored-by: Yeming Liu <11371776+isra-fel@users.noreply.github.com> --- .github/workflows/pr-labeled.yml | 4 +++- .github/workflows/script/PrLabeled.ps1 | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-labeled.yml b/.github/workflows/pr-labeled.yml index 3f2897769445..cccfd6d2a93d 100644 --- a/.github/workflows/pr-labeled.yml +++ b/.github/workflows/pr-labeled.yml @@ -20,4 +20,6 @@ jobs: .github - name: process label shell: pwsh - run: .github/workflows/script/PrLabeled.ps1 -LabelName "${{ github.event.label.name }}" -PrUrl $env:PR + env: + LABEL: ${{ github.event.label.name }} + run: .github/workflows/script/PrLabeled.ps1 -LabelName $env:LABEL -PrUrl $env:PR \ No newline at end of file diff --git a/.github/workflows/script/PrLabeled.ps1 b/.github/workflows/script/PrLabeled.ps1 index 5cf6ca00c44f..f9307974532d 100644 --- a/.github/workflows/script/PrLabeled.ps1 +++ b/.github/workflows/script/PrLabeled.ps1 @@ -25,6 +25,9 @@ This PR was labeled "Breaking Change Release" because it contains breaking chang "needs-revision" = @" This PR was labeled "needs-revision" because it has unresolved review comments or CI failures. Please resolve all open review comments and make sure all CI checks are green. Refer to our [guide](https://eng.ms/docs/cloud-ai-platform/azure-core/azure-management-and-platforms/control-plane-bburns/azure-cli-tools-azure-cli-powershell-and-terraform/azure-cli-tools/devguide/azps/ci_tsg) to troubleshoot common CI failures. +"@ + "codegen-survey" = @" +Thanks for using autorest.powershell to develop your PowerShell module! Would you like to take [a 5-minute survey](https://forms.office.com/r/j6rQuFUqUf?origin=lprLink) to help us improve the tool? Much appreciated :) "@ }