aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/main-pr-label.yml
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2024-08-13 14:27:49 +0300
committerSyndamia <kamen@syndamia.com>2024-08-13 14:28:07 +0300
commit7e26ccf5311d3c68a13b693c5e2b05c61e31f398 (patch)
tree6ae3f238a44f43295eb72232502d764610715893 /.github/workflows/main-pr-label.yml
parentd9f35a55008a2c4b2a52a09178efdc95bc11a8b2 (diff)
downloadpico-web-7e26ccf5311d3c68a13b693c5e2b05c61e31f398.tar
pico-web-7e26ccf5311d3c68a13b693c5e2b05c61e31f398.tar.gz
pico-web-7e26ccf5311d3c68a13b693c5e2b05c61e31f398.zip
feat!: Major workflow rename, reorder, restructure and README updates
Diffstat (limited to '.github/workflows/main-pr-label.yml')
-rw-r--r--.github/workflows/main-pr-label.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/main-pr-label.yml b/.github/workflows/main-pr-label.yml
new file mode 100644
index 0000000..73518b9
--- /dev/null
+++ b/.github/workflows/main-pr-label.yml
@@ -0,0 +1,16 @@
+name: Check for release label inside PR to main
+on:
+ pull_request:
+ types: [opened, edited, reopened, labeled, unlabeled, ready_for_review, review_requested, synchronize]
+ branches:
+ - 'main'
+jobs:
+ has_release_label:
+ if: |
+ github.head_ref == 'dev' &&
+ ! 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