diff options
| author | Syndamia <kamen@syndamia.com> | 2024-08-11 20:02:56 +0300 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2024-08-11 20:02:56 +0300 |
| commit | ddb48f06e7228f64365794cc425250e9ab09989c (patch) | |
| tree | a0ec167ca393b74a07ee9c4857ead8ae729d288b | |
| parent | f60610d65cb5880a99e86452becdb831ec731d2a (diff) | |
| download | pico-web-ddb48f06e7228f64365794cc425250e9ab09989c.tar pico-web-ddb48f06e7228f64365794cc425250e9ab09989c.tar.gz pico-web-ddb48f06e7228f64365794cc425250e9ab09989c.zip | |
fix(main-pr): Fixed pull_request types and has_release_label condition
| -rw-r--r-- | .github/workflows/main-pr.yml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/main-pr.yml b/.github/workflows/main-pr.yml index c122af8..16f78d5 100644 --- a/.github/workflows/main-pr.yml +++ b/.github/workflows/main-pr.yml @@ -1,14 +1,15 @@ name: Check for release label inside pull request on: pull_request: - types: [opened, edited, ready_for_review, review_requested] + 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') + 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 |
