From dd9aadf8d96c31066c84905cad07ac89a68ceead Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 18 Jul 2023 08:48:52 -0700 Subject: [PATCH] fix: properly quote PR_TITLE (#337) --- .github/workflows/pull-request.yml | 2 +- lib/content/pull-request.yml | 2 +- tap-snapshots/test/apply/source-snapshots.js.test.cjs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 721ea3c0..b2c24791 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -47,4 +47,4 @@ jobs: env: PR_TITLE: ${{ github.event.pull_request.title }} run: | - echo '$PR_TITLE' | npx --offline commitlint -V + echo "$PR_TITLE" | npx --offline commitlint -V diff --git a/lib/content/pull-request.yml b/lib/content/pull-request.yml index 3890a3c8..3c523b71 100644 --- a/lib/content/pull-request.yml +++ b/lib/content/pull-request.yml @@ -21,4 +21,4 @@ jobs: env: PR_TITLE: $\{{ github.event.pull_request.title }} run: | - echo '$PR_TITLE' | {{ rootNpxPath }} --offline commitlint -V + echo "$PR_TITLE" | {{ rootNpxPath }} --offline commitlint -V diff --git a/tap-snapshots/test/apply/source-snapshots.js.test.cjs b/tap-snapshots/test/apply/source-snapshots.js.test.cjs index 3d851f76..10004654 100644 --- a/tap-snapshots/test/apply/source-snapshots.js.test.cjs +++ b/tap-snapshots/test/apply/source-snapshots.js.test.cjs @@ -811,7 +811,7 @@ jobs: env: PR_TITLE: \${{ github.event.pull_request.title }} run: | - echo '$PR_TITLE' | npx --offline commitlint -V + echo "$PR_TITLE" | npx --offline commitlint -V .github/workflows/release.yml ======================================== @@ -2491,7 +2491,7 @@ jobs: env: PR_TITLE: \${{ github.event.pull_request.title }} run: | - echo '$PR_TITLE' | npx --offline commitlint -V + echo "$PR_TITLE" | npx --offline commitlint -V .github/workflows/release.yml ======================================== @@ -4023,7 +4023,7 @@ jobs: env: PR_TITLE: \${{ github.event.pull_request.title }} run: | - echo '$PR_TITLE' | npx --offline commitlint -V + echo "$PR_TITLE" | npx --offline commitlint -V .github/workflows/release.yml ========================================