diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbcf466cd..b7152493b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,19 +5,6 @@ on: branches: ['**'] jobs: - commitlint: - name: Commit Naming - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-node@v4 - with: - node-version: 18 - - run: npm ci - - run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose - verify_files: name: Verify Files runs-on: ubuntu-latest diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 000000000..42051123e --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,27 @@ +name: PR Title + +on: + pull_request: + types: + - opened + - synchronize + - reopened + - edited + +jobs: + verify_title: + name: Verify Title + runs-on: ubuntu-latest + if: ${{github.event.action != 'edited' || github.event.changes.title}} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: npm + - name: Install Packages + run: npm ci + - name: Run Commitlint + run: echo "${{github.event.pull_request.title}}" | npx commitlint