dont react on all labeled actions

This commit is contained in:
Jacob Overgaard
2023-05-15 15:57:56 +02:00
parent 1c75fe24ad
commit 47a5df12b4

View File

@@ -5,7 +5,7 @@ on:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed, labeled]
types: [opened, synchronize, reopened, closed]
branches:
- main
@@ -14,7 +14,7 @@ env:
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && ((github.event.action == 'labeled' && github.event.label.name == 'storybook') || (github.event.action != 'closed' && contains(github.event.pull_request.labels.*.name, 'storybook'))))
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed' && contains(github.event.pull_request.labels.*.name, 'storybook'))
runs-on: ubuntu-latest
name: Build and Deploy Job
steps: