Skip to content

Commit

Permalink
chore(ci): escape quotes in "Lint PR title" step (denoland#18200)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Mar 15, 2023
1 parent 96ea5b1 commit 6f9c0a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f9c0a9

Please sign in to comment.