From 7ebd1d81763857d07cbf655adcb14bc0e622e77d Mon Sep 17 00:00:00 2001 From: Jaekwon Bang Date: Tue, 6 Feb 2024 11:07:59 +0900 Subject: [PATCH] Use common github actions --- .github/workflows/pull-request.yml | 31 ++++++------------------------ requirements-dev.txt | 2 +- 2 files changed, 7 insertions(+), 26 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 7d606f91b..e6279b478 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -9,37 +9,18 @@ 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 }} - - - 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: matrix: python-version: [3.8] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -52,6 +33,6 @@ jobs: reuse: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: REUSE Compliance Check uses: fsfe/reuse-action@v1 diff --git a/requirements-dev.txt b/requirements-dev.txt index 921d5d5cd..ba41fc038 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,4 +2,4 @@ tox pytest pytest-cov pytest-flake8 -flake8==3.9.2 \ No newline at end of file +flake8 \ No newline at end of file