From 7752902d393953870bc5fd99f2c8b18459920926 Mon Sep 17 00:00:00 2001 From: wenyutang-ms Date: Thu, 12 Dec 2024 10:24:13 +0800 Subject: [PATCH] ci: update the script for cherry-pick with trim space --- .github/workflows/lint-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index 6f46f27972..8cbee7b146 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -203,8 +203,8 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} # Use a PAT with the required permissions script: | const currentTarget = context.payload.pull_request.base.ref; - const latestVSCRelease = '${{ steps.get-latest-release.outputs.latest_vsc_release }}'; - const latestVSRelease = '${{ steps.get-latest-release.outputs.latest_vs_release }}'; + const latestVSCRelease = '${{ steps.get-latest-release.outputs.latest_vsc_release }}'.trim(); + const latestVSRelease = '${{ steps.get-latest-release.outputs.latest_vs_release }}'.trim(); const prNumber = context.payload.pull_request.number; const prTitle = context.payload.pull_request.title; const prAuthor = context.payload.pull_request.user.login;