Skip to content

Commit

Permalink
chore: Enforce label to ignore right users
Browse files Browse the repository at this point in the history
Change the labels to be the correct name as well as ignoring just the
bots properly
  • Loading branch information
Venefilyn committed Oct 11, 2024
1 parent 609717d commit 2ab926a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/enforce_labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/enforce_verification_labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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"

0 comments on commit 2ab926a

Please sign in to comment.