diff --git a/.github/workflows/enforce_labels.yml b/.github/workflows/enforce_labels.yml index fd7084b9a1..98dcdc1de6 100644 --- a/.github/workflows/enforce_labels.yml +++ b/.github/workflows/enforce_labels.yml @@ -5,7 +5,7 @@ on: types: [opened, labeled, unlabeled, synchronize] jobs: require-type-label: - if: ${{ contains(fromJson('["dependabot", "pre-commit-ci", "renovate"]'), github.actor ) }} + if: ${{ !contains(fromJson('["dependabot", "pre-commit-ci", "renovate"]'), github.actor ) }} runs-on: ubuntu-latest steps: - uses: mheap/github-action-required-labels@v5 @@ -15,7 +15,7 @@ jobs: labels: "kind/.*" use_regex: true require-verification-label: - if: ${{ contains(fromJson('["dependabot", "pre-commit-ci", "renovate"]'), github.actor ) }} + if: ${{ !contains(fromJson('["dependabot", "pre-commit-ci", "renovate"]'), github.actor ) }} runs-on: ubuntu-latest steps: - uses: mheap/github-action-required-labels@v5 diff --git a/.github/workflows/enforce_verification_labels.yml b/.github/workflows/enforce_verification_labels.yml index c435078ad8..6f6c195ae1 100644 --- a/.github/workflows/enforce_verification_labels.yml +++ b/.github/workflows/enforce_verification_labels.yml @@ -5,9 +5,9 @@ on: types: [labeled, unlabeled, opened, edited, synchronize] jobs: enforce-label: - if: github.actor != 'dependabot' || github.actor != 'pre-commit-ci' + if: ${{ !contains(fromJson('["dependabot", "pre-commit-ci", "renovate"]'), github.actor ) }} runs-on: ubuntu-latest steps: - uses: yogevbd/enforce-label-action@2.2.2 with: - REQUIRED_LABELS_ANY: "tests-skip,tests-run-tier0,tests-run-tier1,tests-run-all,tests-run-sanity" + REQUIRED_LABELS_ANY: "tests/skip,tests/tier0,tests/tier1,tests/all,tests/sanity"