diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index ed69395723..1d68439d69 100755 --- a/.github/workflows/ci.generate.ts +++ b/.github/workflows/ci.generate.ts @@ -481,8 +481,10 @@ const ci = { { name: "Lint PR title", if: "matrix.job == 'lint' && github.event_name == 'pull_request'", - run: - "deno run ./tools/verify_pr_title.js '${{ github.event.pull_request.title }}'", + env: { + PR_TITLE: "${{ github.event.pull_request.title }}", + }, + run: 'deno run ./tools/verify_pr_title.js "$PR_TITLE"', }, { name: "lint.js", diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 93fa95d6f2..61a2ac6b69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -295,7 +295,9 @@ jobs: run: deno run --unstable --allow-write --allow-read --allow-run ./tools/format.js --check - name: Lint PR title if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''lint'' && github.event_name == ''pull_request''))' - run: 'deno run ./tools/verify_pr_title.js ''${{ github.event.pull_request.title }}''' + env: + PR_TITLE: '${{ github.event.pull_request.title }}' + run: deno run ./tools/verify_pr_title.js "$PR_TITLE" - name: lint.js if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (steps.exit_early.outputs.EXIT_EARLY != ''true'' && (matrix.job == ''lint''))' run: deno run --unstable --allow-write --allow-read --allow-run ./tools/lint.js