ci: Reference title via environment variable (#10342)

Reference title via environment variable.

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Adnan Khan 2024-06-18 14:30:41 -04:00 committed by GitHub
parent 9c8784fe51
commit a76b1b60f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,8 +23,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Validate pull request title
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
TITLE="${{ github.event.pull_request.title }}"
REGEX="^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|types|wip)(\\(.+\\))?: .{1,72}$"
echo "Title: \"$TITLE\""