From 0ee5812ba1fbe2ce285e12e3eafcd59c2cda5ab7 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Thu, 5 Sep 2024 21:54:11 +0200 Subject: [PATCH] chore: replace unconventional commits workflow - Enforce the check also for main - Get updates from the org template Signed-off-by: Daniel Kesselberg --- .../block-unconventional-commits.yml | 34 +++++++++++++++++++ .github/workflows/conventional_commits.yml | 17 ---------- 2 files changed, 34 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/block-unconventional-commits.yml delete mode 100644 .github/workflows/conventional_commits.yml diff --git a/.github/workflows/block-unconventional-commits.yml b/.github/workflows/block-unconventional-commits.yml new file mode 100644 index 0000000000..0e7d81efc6 --- /dev/null +++ b/.github/workflows/block-unconventional-commits.yml @@ -0,0 +1,34 @@ +# This workflow is provided via the organization template repository +# +# https://github.com/nextcloud/.github +# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization +# +# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: MIT + +name: Block unconventional commits + +on: + pull_request: + types: [opened, ready_for_review, reopened, synchronize] + +permissions: + contents: read + +concurrency: + group: block-unconventional-commits-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + block-unconventional-commits: + name: Block unconventional commits + + runs-on: ubuntu-latest-low + + steps: + - name: Checkout + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + + - uses: webiny/action-conventional-commits@8bc41ff4e7d423d56fa4905f6ff79209a78776c7 # v1.3.0 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/conventional_commits.yml b/.github/workflows/conventional_commits.yml deleted file mode 100644 index 4ca22b6d3c..0000000000 --- a/.github/workflows/conventional_commits.yml +++ /dev/null @@ -1,17 +0,0 @@ -# SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors -# SPDX-License-Identifier: MIT -name: Conventional Commits - -on: - pull_request: - types: [opened, ready_for_review, reopened, synchronize] - branches: - - stable* - -jobs: - build: - name: Conventional Commits - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 - - uses: webiny/action-conventional-commits@8bc41ff4e7d423d56fa4905f6ff79209a78776c7 # v1.3.0