Website Summary Files Commits Branches @commit @diff @stats
path: root / .github / workflows / main-pr-release.yml
diff options
context:
space:
mode:
Commitb2d798879893cde1830a0e3af4ce1789812a709e (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-08-11 20:28:32 +0300
Committer
 Syndamia <kamen@syndamia.com>
2024-08-11 20:28:32 +0300
Files2d17380d2199c66950019b66cfbc5efef33bbd57 /.github/workflows/main-pr-release.yml
pico-web-b2d798879893cde1830a0e3af4ce1789812a709e.tar
pico-web-b2d798879893cde1830a0e3af4ce1789812a709e.tar.gz
pico-web-b2d798879893cde1830a0e3af4ce1789812a709e.zip
Parentf796fc42edba916b528aa1c1a394712bf1d6f8bb (diff)
fix(main-pr): Moved out close pull request job to it's own file
1 files changed, 16 insertions, 0 deletions
-rw-r--r--.github/workflows/main-pr-release.yml16
diff --git a/.github/workflows/main-pr-release.yml b/.github/workflows/main-pr-release.yml
new file mode 100644
index 0000000..64ae3d8
--- /dev/null
+++ b/.github/workflows/main-pr-release.yml
@@ -0,0 +1,16 @@
+name: Check for release label inside pull request
+on:
+ pull_request:
+ types: [opened, reopened, labeled, unlabeled, ready_for_review, review_requested, synchronize]
+ 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