1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-30 16:40:57 -05:00

chore(ci): escape quotes in "Lint PR title" step (#18200)

This commit is contained in:
David Sherret 2023-03-14 23:55:04 -04:00 committed by Yoshiya Hinosawa
parent ddb5f64d02
commit b297f57a9b
2 changed files with 7 additions and 3 deletions

View file

@ -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",

View file

@ -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