diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 3d84b4e..764d384 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -9,28 +9,9 @@ on: jobs: check-commit-message: - name: Check Commit Message - runs-on: ubuntu-latest - steps: - - name: Get PR Commits - id: 'get-pr-commits' - uses: tim-actions/get-pr-commits@v1.2.0 - with: - token: ${{ secrets.TOKEN }} - - - name: Check Subject Line Length - uses: tim-actions/commit-message-checker-with-regex@v0.3.1 - with: - commits: ${{ steps.get-pr-commits.outputs.commits }} - pattern: '^.{0,50}(\n.*)*$' - error: 'Subject too long (max 50)' - - name: Check Body Line Length - if: ${{ success() || failure() }} - uses: tim-actions/commit-message-checker-with-regex@v0.3.1 - with: - commits: ${{ steps.get-pr-commits.outputs.commits }} - pattern: '^.+(\n.{0,72})*$' - error: 'Body line too long (max 72)' + uses: fosslight/.github/.github/workflows/base-check-commit-message.yml@main + secrets: + envPAT: ${{ secrets.GITHUB_TOKEN }} build: runs-on: ubuntu-latest strategy: