Skip to content

Commit 0dd7e9a

Browse files
committed
fetch base-check-commit-message.yml from .github
Signed-off-by: jaehee329 <[email protected]>
1 parent 4133d5e commit 0dd7e9a

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

.github/workflows/pull-request.yml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,10 @@ on:
99

1010
jobs:
1111
check-commit-message:
12-
name: Check Commit Message
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Get PR Commits
16-
id: 'get-pr-commits'
17-
uses: tim-actions/get-pr-commits@master
18-
with:
19-
token: ${{ secrets.TOKEN }}
12+
uses: fosslight/.github/.github/workflows/base-check-commit-message.yml@main
13+
secrets:
14+
envPAT: ${{ secrets.GITHUB_TOKEN }}
2015

21-
- name: Check Subject Line Length
22-
uses: tim-actions/[email protected]
23-
with:
24-
commits: ${{ steps.get-pr-commits.outputs.commits }}
25-
pattern: '^.{0,50}(\n.*)*$'
26-
error: 'Subject too long (max 50)'
27-
- name: Check Body Line Length
28-
if: ${{ success() || failure() }}
29-
uses: tim-actions/[email protected]
30-
with:
31-
commits: ${{ steps.get-pr-commits.outputs.commits }}
32-
pattern: '^.+(\n.{0,72})*$'
33-
error: 'Body line too long (max 72)'
3416
build:
3517
runs-on: ubuntu-latest
3618
strategy:
@@ -49,6 +31,7 @@ jobs:
4931
- name: Run Tox
5032
run: |
5133
tox -e release
34+
5235
reuse:
5336
runs-on: ubuntu-latest
5437
steps:

0 commit comments

Comments
 (0)