Skip to content

Commit e6aab16

Browse files
authored
Merge pull request #9 from fosslight/develop
Use common github actions
2 parents f4c9dcc + e46dbd7 commit e6aab16

File tree

1 file changed

+6
-25
lines changed

1 file changed

+6
-25
lines changed

.github/workflows/pull-request.yml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,18 @@ 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 }}
20-
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)'
12+
uses: fosslight/.github/.github/workflows/base-check-commit-message.yml@main
13+
secrets:
14+
envPAT: ${{ secrets.GITHUB_TOKEN }}
3415
build:
3516
runs-on: ubuntu-latest
3617
strategy:
3718
matrix:
3819
python-version: [3.8]
3920
steps:
40-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
4122
- name: Set up Python ${{ matrix.python-version }}
42-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
4324
with:
4425
python-version: ${{ matrix.python-version }}
4526
- name: Install dependencies
@@ -52,6 +33,6 @@ jobs:
5233
reuse:
5334
runs-on: ubuntu-latest
5435
steps:
55-
- uses: actions/checkout@v2
36+
- uses: actions/checkout@v3
5637
- name: REUSE Compliance Check
5738
uses: fsfe/reuse-action@v1

0 commit comments

Comments
 (0)