Skip to content

Commit

Permalink
ci: store pr title before usage (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
subzero10 authored May 7, 2024
1 parent 1e55e32 commit 0f6b74f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@ jobs:
- name: Install deps
run: npm ci --ignore-scripts
- name: Verify PR title is in the correct format
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
echo "${{ github.event.pull_request.title }}" | npx commitlint -V
echo $TITLE | npx commitlint -V
needs-migration-docs-check:
runs-on: ubuntu-latest
steps:
- name: Echo event name
run: echo "${{ github.event_name }}:${{ github.event.pull_request.title }}"
env:
TITLE: ${{ github.event.pull_request.title }}
EVENT: ${{ github.event_name }}
run: echo "$EVENT:$TITLE"

- name: Check PR name for breaking changes
if: github.event_name == 'pull_request' && ( contains(github.event.pull_request.title, '!') || contains(github.event.pull_request.title, 'BREAKING CHANGE') )
Expand Down

0 comments on commit 0f6b74f

Please sign in to comment.