Skip to content

Commit

Permalink
fix: wrap pr title and base_ref in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
nlf authored and lukekarrys committed Jan 25, 2023
1 parent 0d0a627 commit 657286c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
id: commit
continue-on-error: true
run: |
npx --offline commitlint -V --from origin/${{ github.base_ref }} --to ${{ github.event.pull_request.head.sha }}
npx --offline commitlint -V --from 'origin/${{ github.base_ref }}' --to ${{ github.event.pull_request.head.sha }}
- name: Run Commitlint on PR Title
if: steps.commit.outcome == 'failure'
run: |
echo ${{ github.event.pull_request.title }} | npx --offline commitlint -V
echo '${{ github.event.pull_request.title }}' | npx --offline commitlint -V
4 changes: 2 additions & 2 deletions lib/content/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
id: commit
continue-on-error: true
run: |
{{ rootNpxPath }} --offline commitlint -V --from origin/$\{{ github.base_ref }} --to $\{{ github.event.pull_request.head.sha }}
{{ rootNpxPath }} --offline commitlint -V --from 'origin/$\{{ github.base_ref }}' --to $\{{ github.event.pull_request.head.sha }}
- name: Run Commitlint on PR Title
if: steps.commit.outcome == 'failure'
run: |
echo $\{{ github.event.pull_request.title }} | {{ rootNpxPath }} --offline commitlint -V
echo '$\{{ github.event.pull_request.title }}' | {{ rootNpxPath }} --offline commitlint -V
12 changes: 6 additions & 6 deletions tap-snapshots/test/apply/source-snapshots.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -744,11 +744,11 @@ jobs:
id: commit
continue-on-error: true
run: |
npx --offline commitlint -V --from origin/\${{ github.base_ref }} --to \${{ github.event.pull_request.head.sha }}
npx --offline commitlint -V --from 'origin/\${{ github.base_ref }}' --to \${{ github.event.pull_request.head.sha }}
- name: Run Commitlint on PR Title
if: steps.commit.outcome == 'failure'
run: |
echo \${{ github.event.pull_request.title }} | npx --offline commitlint -V
echo '\${{ github.event.pull_request.title }}' | npx --offline commitlint -V
.github/workflows/release.yml
========================================
Expand Down Expand Up @@ -2318,11 +2318,11 @@ jobs:
id: commit
continue-on-error: true
run: |
npx --offline commitlint -V --from origin/\${{ github.base_ref }} --to \${{ github.event.pull_request.head.sha }}
npx --offline commitlint -V --from 'origin/\${{ github.base_ref }}' --to \${{ github.event.pull_request.head.sha }}
- name: Run Commitlint on PR Title
if: steps.commit.outcome == 'failure'
run: |
echo \${{ github.event.pull_request.title }} | npx --offline commitlint -V
echo '\${{ github.event.pull_request.title }}' | npx --offline commitlint -V
.github/workflows/release.yml
========================================
Expand Down Expand Up @@ -3735,11 +3735,11 @@ jobs:
id: commit
continue-on-error: true
run: |
npx --offline commitlint -V --from origin/\${{ github.base_ref }} --to \${{ github.event.pull_request.head.sha }}
npx --offline commitlint -V --from 'origin/\${{ github.base_ref }}' --to \${{ github.event.pull_request.head.sha }}
- name: Run Commitlint on PR Title
if: steps.commit.outcome == 'failure'
run: |
echo \${{ github.event.pull_request.title }} | npx --offline commitlint -V
echo '\${{ github.event.pull_request.title }}' | npx --offline commitlint -V
.github/workflows/release.yml
========================================
Expand Down

0 comments on commit 657286c

Please sign in to comment.