Skip to content

Commit

Permalink
fix: pull PR_TITLE into env
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed May 1, 2023
1 parent 1edde27 commit 238fc4a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,7 @@ jobs:
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'
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
echo '${{ github.event.pull_request.title }}' | npx --offline commitlint -V
echo '$PR_TITLE' | npx --offline commitlint -V
4 changes: 3 additions & 1 deletion lib/content/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ jobs:
{{ 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'
env:
PR_TITLE: $\{{ github.event.pull_request.title }}
run: |
echo '$\{{ github.event.pull_request.title }}' | {{ rootNpxPath }} --offline commitlint -V
echo '$PR_TITLE' | {{ rootNpxPath }} --offline commitlint -V
12 changes: 9 additions & 3 deletions tap-snapshots/test/apply/source-snapshots.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,10 @@ jobs:
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'
env:
PR_TITLE: \${{ github.event.pull_request.title }}
run: |
echo '\${{ github.event.pull_request.title }}' | npx --offline commitlint -V
echo '$PR_TITLE' | npx --offline commitlint -V
.github/workflows/release.yml
========================================
Expand Down Expand Up @@ -2332,8 +2334,10 @@ jobs:
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'
env:
PR_TITLE: \${{ github.event.pull_request.title }}
run: |
echo '\${{ github.event.pull_request.title }}' | npx --offline commitlint -V
echo '$PR_TITLE' | npx --offline commitlint -V
.github/workflows/release.yml
========================================
Expand Down Expand Up @@ -3760,8 +3764,10 @@ jobs:
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'
env:
PR_TITLE: \${{ github.event.pull_request.title }}
run: |
echo '\${{ github.event.pull_request.title }}' | npx --offline commitlint -V
echo '$PR_TITLE' | npx --offline commitlint -V
.github/workflows/release.yml
========================================
Expand Down

0 comments on commit 238fc4a

Please sign in to comment.