From 02d196474ae349e8447daa4e1df818ae393e03fd Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Sun, 9 Jun 2024 02:31:01 +0100 Subject: [PATCH] ci(pr-triage): Split job up (#10341) ci: split job up --- .github/workflows/pr-triage.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr-triage.yml b/.github/workflows/pr-triage.yml index 6886980cb..32289d751 100644 --- a/.github/workflows/pr-triage.yml +++ b/.github/workflows/pr-triage.yml @@ -7,19 +7,22 @@ on: - reopened - synchronize jobs: - pr-triage: - name: PR Triage + label: + name: Label + if: github.event.action != 'edited' runs-on: ubuntu-latest steps: - - name: Automatically label PR + - name: Label pull request uses: actions/labeler@v5 - if: github.event.action != 'edited' with: repo-token: '${{ secrets.GITHUB_TOKEN }}' sync-labels: true - - - name: Validate commit convention - if: github.event.action != 'synchronize' + validate-title: + name: Validate title + if: github.event.action != 'synchronize' + runs-on: ubuntu-latest + steps: + - name: Validate pull request title run: | TITLE="${{ github.event.pull_request.title }}" REGEX="^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|types|wip)(\\(.+\\))?: .{1,72}$"