aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/main-pr.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/main-pr.yml')
-rw-r--r--.github/workflows/main-pr.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/main-pr.yml b/.github/workflows/main-pr.yml
new file mode 100644
index 0000000..c122af8
--- /dev/null
+++ b/.github/workflows/main-pr.yml
@@ -0,0 +1,14 @@
+name: Check for release label inside pull request
+on:
+ pull_request:
+ types: [opened, edited, ready_for_review, review_requested]
+ branches:
+ - 'main'
+jobs:
+ has_release_label:
+ if: ! contains(github.event.pull_request.labels.*.name, 'release:major') &&
+ ! contains(github.event.pull_request.labels.*.name, 'release:minor') &&
+ ! contains(github.event.pull_request.labels.*.name, 'release:patch')
+ runs-on: ubuntu-latest
+ steps:
+ - run: exit 1