From 72b94f6a529557e1855dc0e35e5bdd82ca5b9eac Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 10 Dec 2024 11:34:03 +0100 Subject: [PATCH] tools: fix release proposal linter to support more than 1 folk preparing --- .github/workflows/lint-release-proposal.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint-release-proposal.yml b/.github/workflows/lint-release-proposal.yml index bc2ac2d0127865..5f0f9a87329b17 100644 --- a/.github/workflows/lint-release-proposal.yml +++ b/.github/workflows/lint-release-proposal.yml @@ -43,7 +43,7 @@ jobs: PR_HEAD="$(gh pr view "$PR_URL" --json headRefOid -q .headRefOid)" echo "Head of $PR_URL: $PR_HEAD" echo "Current commit: $GITHUB_SHA" - [[ "$PR_HEAD" == "$GITHUB_SHA" ]] + [ "$PR_HEAD" = "$GITHUB_SHA" ] env: GH_TOKEN: ${{ github.token }} - name: Validate CHANGELOG @@ -53,7 +53,7 @@ jobs: echo "Expected CHANGELOG section title: $EXPECTED_CHANGELOG_TITLE_INTRO" CHANGELOG_TITLE="$(grep "$EXPECTED_CHANGELOG_TITLE_INTRO" "doc/changelogs/CHANGELOG_V${COMMIT_SUBJECT:20:2}.md")" echo "Actual: $CHANGELOG_TITLE" - [[ "${CHANGELOG_TITLE%@*}@" == "$EXPECTED_CHANGELOG_TITLE_INTRO" ]] + [ "${CHANGELOG_TITLE%%@*}@" = "$EXPECTED_CHANGELOG_TITLE_INTRO" ] - name: Verify NODE_VERSION_IS_RELEASE bit is correctly set run: | grep -q '^#define NODE_VERSION_IS_RELEASE 1$' src/node_version.h