2022-10-20 04:58:34 -07:00
|
|
|
name: Check PR title
|
2022-09-14 01:50:42 -07:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- edited
|
|
|
|
- synchronize
|
2023-02-21 05:04:35 -08:00
|
|
|
branches:
|
2023-02-22 04:14:29 -08:00
|
|
|
- '**'
|
2023-02-21 05:04:35 -08:00
|
|
|
- '!release/*'
|
2022-09-14 01:50:42 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-pr-title:
|
|
|
|
runs-on: ubuntu-latest
|
2022-10-20 04:58:34 -07:00
|
|
|
timeout-minutes: 5
|
2022-09-14 01:50:42 -07:00
|
|
|
steps:
|
2022-10-20 04:58:34 -07:00
|
|
|
- name: Check out branch
|
2023-08-22 02:21:16 -07:00
|
|
|
uses: actions/checkout@v3.5.3
|
2022-10-20 04:58:34 -07:00
|
|
|
|
2023-08-22 02:21:16 -07:00
|
|
|
- uses: pnpm/action-setup@v2.4.0
|
2023-02-28 02:54:46 -08:00
|
|
|
|
2023-08-22 02:21:16 -07:00
|
|
|
- uses: actions/setup-node@v3.7.0
|
2023-02-28 02:54:46 -08:00
|
|
|
with:
|
2023-06-02 06:23:28 -07:00
|
|
|
node-version: 18.x
|
2023-02-28 02:54:46 -08:00
|
|
|
cache: 'pnpm'
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
|
2022-10-20 04:58:34 -07:00
|
|
|
- name: Validate PR title
|
|
|
|
id: validate_pr_title
|
2023-02-28 02:54:46 -08:00
|
|
|
uses: n8n-io/validate-n8n-pull-request-title@v1.1
|
2022-09-14 01:50:42 -07:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|