From 1e29dd3267dcf35eab0f2ad5e3e110ccf0149ee8 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Tue, 10 Jan 2023 12:42:40 +0100 Subject: [PATCH] CI: seperate check-labels and check-commits workflows --- .../workflows/{check-pr.yml => check-commits.yml} | 14 ++------------ .github/workflows/check-labels.yml | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 12 deletions(-) rename .github/workflows/{check-pr.yml => check-commits.yml} (59%) create mode 100644 .github/workflows/check-labels.yml diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-commits.yml similarity index 59% rename from .github/workflows/check-pr.yml rename to .github/workflows/check-commits.yml index 1c7569b2f0..d294f37836 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-commits.yml @@ -1,18 +1,8 @@ -name: check-pr +name: check-commits on: pull_request: - types: [opened, reopened, labeled, unlabeled, synchronize] - pull_request_review: - types: [submitted, dismissed] + types: [opened, reopened, synchronize] jobs: - check-labels: - runs-on: ubuntu-latest - steps: - - uses: RIOT-OS/check-labels-action@v1.0.0 - with: - access_token: ${{ secrets.GITHUB_TOKEN }} - unset_labels: 'CI: needs squashing,State: waiting for CI update,State: waiting for other PR,Process: blocked by feature freeze' - cond_labels: '(Process: needs >1 ACK,review.approvals>1),(Area: RDM,review.approvals>2)' check-commits: runs-on: ubuntu-latest if: ${{ github.base_ref }} diff --git a/.github/workflows/check-labels.yml b/.github/workflows/check-labels.yml new file mode 100644 index 0000000000..37d9dcd3ee --- /dev/null +++ b/.github/workflows/check-labels.yml @@ -0,0 +1,15 @@ +name: check-labels +on: + pull_request: + types: [opened, reopened, labeled, unlabeled] + pull_request_review: + types: [submitted, dismissed] +jobs: + check-labels: + runs-on: ubuntu-latest + steps: + - uses: RIOT-OS/check-labels-action@v1.0.0 + with: + access_token: ${{ secrets.GITHUB_TOKEN }} + unset_labels: 'CI: needs squashing,State: waiting for CI update,State: waiting for other PR,Process: blocked by feature freeze' + cond_labels: '(Process: needs >1 ACK,review.approvals>1),(Area: RDM,review.approvals>2)'