From 45798ace0c7adcec0fa72a098c06eb65965fe1d3 Mon Sep 17 00:00:00 2001 From: Luke Tainton Date: Sun, 12 Jan 2025 18:51:15 +0000 Subject: [PATCH] fix(ci): merge checks into one file --- .gitea/workflows/ci.yml | 11 ++++++++++- .gitea/workflows/pr-title-semantic.yml | 20 -------------------- 2 files changed, 10 insertions(+), 21 deletions(-) delete mode 100644 .gitea/workflows/pr-title-semantic.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 44cd5d9..c78b2aa 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,9 +1,18 @@ name: CI on: pull_request: - types: [opened, synchronize, reopened] + types: + - opened + - edited + - synchronize + - reopened jobs: + validate_pr_title: + uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/conventional-commit.yml@main + with: + commit_message: ${{ gitea.event.pull_request.title }} + ci: uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/ci-python-uv-with-docker.yml@main with: diff --git a/.gitea/workflows/pr-title-semantic.yml b/.gitea/workflows/pr-title-semantic.yml deleted file mode 100644 index 3730964..0000000 --- a/.gitea/workflows/pr-title-semantic.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: "Enforce Conventional Commit PR Title" - -on: - pull_request_target: - types: - - opened - - edited - - synchronize - - reopened - - labeled - - unlabeled - -jobs: - validate: - name: Validate PR Title - runs-on: ubuntu-latest - steps: - - uses: https://git.tainton.uk/actions/conventional-commits-check-action@v1.1.1 - with: - commit-message: ${{ gitea.event.pull_request.title }}