Skip to content

Commit

Permalink
fix: STRF-11934 Move PR Title to env
Browse files Browse the repository at this point in the history
  • Loading branch information
jairo-bc committed Apr 15, 2024
1 parent 8790190 commit 3e97a32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pull_request_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
matrix:
node: [16.x, 18.x]
os: ['ubuntu-latest', 'windows-2019', 'macos-latest']
env:
TITLE: ${{ github.event.pull_request.title }}

runs-on: ${{ matrix.os }}

Expand All @@ -29,7 +31,7 @@ jobs:
run: npm ci

- name: Verify Github PR Title
run: echo "${{ github.event.pull_request.title }}" | npx commitlint
run: echo $TITLE | npx commitlint

- name: Verify Git Commit Name
run: git log -1 --pretty=format:"%s" | npx commitlint
Expand Down

0 comments on commit 3e97a32

Please sign in to comment.