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 1c7569b2f0f54..d294f37836488 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 0000000000000..027e7e3e80adb --- /dev/null +++ b/.github/workflows/check-labels.yml @@ -0,0 +1,15 @@ +name: check-labels +on: + pull_request: + types: [opened, reopened, labeled, unlabeled, synchronize] + 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)'