From 848dc0e93541320a98afd77c6962a883d914e57a Mon Sep 17 00:00:00 2001 From: sahani-deriv Date: Fri, 28 Jun 2024 10:15:55 +0800 Subject: [PATCH] ci: fix set output --- .github/workflows/check_versioning_pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_versioning_pr.yml b/.github/workflows/check_versioning_pr.yml index 224c00f9f..c45a405ec 100644 --- a/.github/workflows/check_versioning_pr.yml +++ b/.github/workflows/check_versioning_pr.yml @@ -31,11 +31,11 @@ jobs: const existingPR = pullRequests.find(pr => pr.title === 'chore(version): bump version and update changelog'); - echo -e "VERSIONING_PR_EXISTS=$existingPR" >> "$GITHUB_OUTPUT" - if (existingPR) { + core.setOutput("VERSIONING_PR_EXISTS", true); console.log("Version bump pull request exists. Please merge that pr first to pass the check.: #${existingPR.number}"); } else { + core.setOutput("VERSIONING_PR_EXISTS", false); console.log("No version bump pull request found."); }