Skip to content

Commit fe384d9

Browse files
authored
ci: store pr title before usage (#123)
1 parent 5ddcaca commit fe384d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/check-pr-title.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ jobs:
2121
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
2222
2323
- name: Verify PR title is in the correct format
24+
env:
25+
TITLE: ${{ github.event.pull_request.title }}
2426
run: |
25-
echo "${{ github.event.pull_request.title }}" | npx commitlint -V
27+
echo $TITLE | npx commitlint -V

0 commit comments

Comments
 (0)