Skip to content

Commit 238fc4a

Browse files
committedMay 1, 2023
fix: pull PR_TITLE into env
1 parent 1edde27 commit 238fc4a

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed
 

‎.github/workflows/pull-request.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,7 @@ jobs:
4444
npx --offline commitlint -V --from 'origin/${{ github.base_ref }}' --to ${{ github.event.pull_request.head.sha }}
4545
- name: Run Commitlint on PR Title
4646
if: steps.commit.outcome == 'failure'
47+
env:
48+
PR_TITLE: ${{ github.event.pull_request.title }}
4749
run: |
48-
echo '${{ github.event.pull_request.title }}' | npx --offline commitlint -V
50+
echo '$PR_TITLE' | npx --offline commitlint -V

‎lib/content/pull-request.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ jobs:
1818
{{ rootNpxPath }} --offline commitlint -V --from 'origin/$\{{ github.base_ref }}' --to $\{{ github.event.pull_request.head.sha }}
1919
- name: Run Commitlint on PR Title
2020
if: steps.commit.outcome == 'failure'
21+
env:
22+
PR_TITLE: $\{{ github.event.pull_request.title }}
2123
run: |
22-
echo '$\{{ github.event.pull_request.title }}' | {{ rootNpxPath }} --offline commitlint -V
24+
echo '$PR_TITLE' | {{ rootNpxPath }} --offline commitlint -V

‎tap-snapshots/test/apply/source-snapshots.js.test.cjs

+9-3
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,10 @@ jobs:
747747
npx --offline commitlint -V --from 'origin/\${{ github.base_ref }}' --to \${{ github.event.pull_request.head.sha }}
748748
- name: Run Commitlint on PR Title
749749
if: steps.commit.outcome == 'failure'
750+
env:
751+
PR_TITLE: \${{ github.event.pull_request.title }}
750752
run: |
751-
echo '\${{ github.event.pull_request.title }}' | npx --offline commitlint -V
753+
echo '$PR_TITLE' | npx --offline commitlint -V
752754
753755
.github/workflows/release.yml
754756
========================================
@@ -2332,8 +2334,10 @@ jobs:
23322334
npx --offline commitlint -V --from 'origin/\${{ github.base_ref }}' --to \${{ github.event.pull_request.head.sha }}
23332335
- name: Run Commitlint on PR Title
23342336
if: steps.commit.outcome == 'failure'
2337+
env:
2338+
PR_TITLE: \${{ github.event.pull_request.title }}
23352339
run: |
2336-
echo '\${{ github.event.pull_request.title }}' | npx --offline commitlint -V
2340+
echo '$PR_TITLE' | npx --offline commitlint -V
23372341
23382342
.github/workflows/release.yml
23392343
========================================
@@ -3760,8 +3764,10 @@ jobs:
37603764
npx --offline commitlint -V --from 'origin/\${{ github.base_ref }}' --to \${{ github.event.pull_request.head.sha }}
37613765
- name: Run Commitlint on PR Title
37623766
if: steps.commit.outcome == 'failure'
3767+
env:
3768+
PR_TITLE: \${{ github.event.pull_request.title }}
37633769
run: |
3764-
echo '\${{ github.event.pull_request.title }}' | npx --offline commitlint -V
3770+
echo '$PR_TITLE' | npx --offline commitlint -V
37653771
37663772
.github/workflows/release.yml
37673773
========================================

0 commit comments

Comments
 (0)
Please sign in to comment.