diff options
| author | Syndamia <kamen@syndamia.com> | 2024-08-11 20:28:32 +0300 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2024-08-11 20:28:32 +0300 |
| commit | b2d798879893cde1830a0e3af4ce1789812a709e (patch) | |
| tree | 2d17380d2199c66950019b66cfbc5efef33bbd57 /.github/workflows/main-pr-release.yml | |
| parent | f796fc42edba916b528aa1c1a394712bf1d6f8bb (diff) | |
| download | pico-web-b2d798879893cde1830a0e3af4ce1789812a709e.tar pico-web-b2d798879893cde1830a0e3af4ce1789812a709e.tar.gz pico-web-b2d798879893cde1830a0e3af4ce1789812a709e.zip | |
fix(main-pr): Moved out close pull request job to it's own file
Diffstat (limited to '.github/workflows/main-pr-release.yml')
| -rw-r--r-- | .github/workflows/main-pr-release.yml | 16 |
1 files changed, 16 insertions, 0 deletions
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 |
