Skip to content

Commit

Permalink
fix: STRF-11934 Move PR Title to env (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
jairo-bc authored Apr 15, 2024
1 parent dca97ac commit eee9306
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
strategy:
matrix:
node: [18.x]
env:
TITLE: ${{ github.event.pull_request.title }}

steps:
- name: Checkout code
Expand All @@ -26,7 +28,7 @@ jobs:
run: npm i

- 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 eee9306

Please sign in to comment.