Skip to content

Commit eee9306

Browse files
authored
fix: STRF-11934 Move PR Title to env (#303)
1 parent dca97ac commit eee9306

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
strategy:
1313
matrix:
1414
node: [18.x]
15+
env:
16+
TITLE: ${{ github.event.pull_request.title }}
1517

1618
steps:
1719
- name: Checkout code
@@ -26,7 +28,7 @@ jobs:
2628
run: npm i
2729

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

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

0 commit comments

Comments
 (0)