Skip to content

Commit

Permalink
fix: STRF-11934 Move PR Title to env (#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
jairo-bc authored Apr 15, 2024
1 parent 8790190 commit 1560f4e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 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 @@ -28,8 +30,11 @@ jobs:
- name: Install Dependencies
run: npm ci

- name: Verify Github PR Title TEST
run: echo '${{ env.TITLE }}'

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

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

0 comments on commit 1560f4e

Please sign in to comment.