From 1f2cf228aca5872657a9eba21d5656bcad1773d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Wed, 14 Sep 2022 10:50:42 +0200 Subject: [PATCH] ci: PR title/description change should not re-trigger the build-lint-test workflow (#4100) --- .github/workflows/check-pr-title.yml | 32 +++++++++++++++++++++++++ .github/workflows/ci-pull-requests.yml | 33 +------------------------- 2 files changed, 33 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/check-pr-title.yml diff --git a/.github/workflows/check-pr-title.yml b/.github/workflows/check-pr-title.yml new file mode 100644 index 0000000000000..38f1c0db79ef7 --- /dev/null +++ b/.github/workflows/check-pr-title.yml @@ -0,0 +1,32 @@ +name: Test Pull Request Semantics + +on: + pull_request: + types: + - opened + - edited + - synchronize + +jobs: + check-pr-title: + runs-on: ubuntu-latest + permissions: + checks: write + pull-requests: read + contents: read + steps: + - uses: amannn/action-semantic-pull-request@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + # https://www.notion.so/n8n/Release-Process-fce65faea3d5403a85210f7e7a60d0f8 + types: | + feat + fix + perf + test + docs + refactor + build + ci + requireScope: false diff --git a/.github/workflows/ci-pull-requests.yml b/.github/workflows/ci-pull-requests.yml index 977d98109aa5c..92d62c7f6f131 100644 --- a/.github/workflows/ci-pull-requests.yml +++ b/.github/workflows/ci-pull-requests.yml @@ -1,38 +1,8 @@ name: Test Pull Requests -on: - pull_request: - types: - - opened - - edited - - synchronize - branches: - - master +on: [pull_request] jobs: - check-pr-title: - runs-on: ubuntu-latest - permissions: - checks: write - pull-requests: read - contents: read - steps: - - uses: amannn/action-semantic-pull-request@v4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - # https://www.notion.so/n8n/Release-Process-fce65faea3d5403a85210f7e7a60d0f8 - types: | - feat - fix - perf - test - docs - refactor - build - ci - requireScope: false - build: runs-on: ubuntu-latest @@ -57,4 +27,3 @@ jobs: npm run lint env: CI: true -