diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 349258a..9e37a60 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -9,28 +9,10 @@ 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@master - with: - token: ${{ secrets.TOKEN }} + uses: fosslight/.github/.github/workflows/base-check-commit-message.yml@main + secrets: + envPAT: ${{ secrets.GITHUB_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)' build: runs-on: ubuntu-latest strategy: @@ -49,6 +31,7 @@ jobs: - name: Run Tox run: | tox -e release + reuse: runs-on: ubuntu-latest steps: