From e932ea24f293ae82c595594db83782b2964a09d1 Mon Sep 17 00:00:00 2001 From: kyu08 <49891479+kyu08@users.noreply.github.com> Date: Sat, 16 Aug 2025 16:46:14 +0900 Subject: [PATCH] Run label check workflow only on label events and open pr event --- .github/workflows/check-required-label.yml | 15 +++++++++++++++ .github/workflows/ci.yml | 9 --------- 2 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/check-required-label.yml diff --git a/.github/workflows/check-required-label.yml b/.github/workflows/check-required-label.yml new file mode 100644 index 000000000..830060fd0 --- /dev/null +++ b/.github/workflows/check-required-label.yml @@ -0,0 +1,15 @@ +name: Check Required Labels + +on: + pull_request: + types: [opened, labeled, unlabeled] + +jobs: + check-required-label: + runs-on: ubuntu-latest + steps: + - uses: mheap/github-action-required-labels@v5 + with: + mode: exactly + count: 1 + labels: "ignore-for-release, feature, enhancement, bug, maintenance, docs, i18n, performance" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f431fca9..7f69523ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -175,15 +175,6 @@ jobs: - name: errors run: golangci-lint run if: ${{ failure() }} - check-required-label: - runs-on: ubuntu-latest - if: github.ref != 'refs/heads/master' - steps: - - uses: mheap/github-action-required-labels@v5 - with: - mode: exactly - count: 1 - labels: "ignore-for-release, feature, enhancement, bug, maintenance, docs, i18n, performance" upload-coverage: # List all jobs that produce coverage files needs: [unit-tests, integration-tests]