fix(ci): pr title workflow should be executed on updates
This commit is contained in:
parent
ea8e5eb0c0
commit
bb1c2c5875
5
.github/workflows/pr-title.yml
vendored
5
.github/workflows/pr-title.yml
vendored
@ -2,7 +2,7 @@ name: ✅ Check PR Title
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, edited]
|
types: [opened, edited, synchronize]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
@ -10,11 +10,8 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
lint-pr-title:
|
lint-pr-title:
|
||||||
name: Check PR Title
|
name: Check PR Title
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
if: ${{ github.event.action == 'opened' || github.event.changes.title != null }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 📥 Checkout
|
- name: 📥 Checkout
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user