-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 899 Bytes
/
lint-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This is the workflow to validate a PR
#
name: Lint Pull Request
on:
# Allows you to call this workflow from other workflows
workflow_call:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Declare default permissions as read only.
permissions:
contents: read
jobs:
lint-pr:
name: '🕵️♂️ Lint Commit Message'
runs-on: ubuntu-latest
steps:
- name: '☁️ Checkout repository'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
# check for the most recent release: https://github.com/Namchee/conventional-pr/releases
- name: '✅ Lint PR'
uses: Namchee/conventional-pr@v0.15.5
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
label: '⁉️ invalid'
branch_pattern: ''