|
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 | 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 }} |
34 | 15 | build: |
35 | 16 | runs-on: ubuntu-latest |
36 | 17 | strategy: |
37 | 18 | matrix: |
38 | 19 | python-version: [3.8] |
39 | 20 | steps: |
40 | | - - uses: actions/checkout@v2 |
| 21 | + - uses: actions/checkout@v3 |
41 | 22 | - name: Set up Python ${{ matrix.python-version }} |
42 | | - uses: actions/setup-python@v2 |
| 23 | + uses: actions/setup-python@v4 |
43 | 24 | with: |
44 | 25 | python-version: ${{ matrix.python-version }} |
45 | 26 | - name: Install dependencies |
|
52 | 33 | reuse: |
53 | 34 | runs-on: ubuntu-latest |
54 | 35 | steps: |
55 | | - - uses: actions/checkout@v2 |
| 36 | + - uses: actions/checkout@v3 |
56 | 37 | - name: REUSE Compliance Check |
57 | 38 | uses: fsfe/reuse-action@v1 |
0 commit comments