Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace PR label checker #48

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/pr_labels.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/check_pr_label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.github/workflows/check_pr_label.ymlname: Check Label on PR
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]

jobs:
check_pr_label:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for all branches and tags

- name: Check if the PR contains the label validation or no validation
id: check_pr_label
if: |
! contains( github.event.pull_request.labels.*.name, 'validation') && ! contains( github.event.pull_request.labels.*.name, 'no validation')
run: |
echo "Neither 'validation' nor 'no validation' labels are present."
exit 1 # Exit with a failure
Loading