diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1ed40dc..d7ccfa0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -116,12 +116,12 @@ jobs: $commitMode = "noop" - if($commitMode -eq "noop" && "${{github.event_name}}" -eq "workflow_dispatch") - $commitMode = "dispatch" - if($commitMode -eq "noop" && "$branch|pull_request|closed|true" -eq "${{github.base_ref}}|${{github.event_name}}|${{github.event.action}}|${{github.event.pull_request.merged}}") - $commitMode = "pushMerge" - if($commitMode -eq "noop" && "$branch|push" -eq "${{github.base_ref}}|${{github.event_name}}") - $commitMode = "push" + if($commitMode -eq "noop" && "${{github.event_name}}" -eq "workflow_dispatch") { + $commitMode = "dispatch" } + if($commitMode -eq "noop" && "$branch|pull_request|closed|true" -eq "${{github.base_ref}}|${{github.event_name}}|${{github.event.action}}|${{github.event.pull_request.merged}}") { + $commitMode = "pushMerge" } + if($commitMode -eq "noop" && "$branch|push" -eq "${{github.base_ref}}|${{github.event_name}}") { + $commitMode = "push" } $data = @{ #prefix #suffix #configuration #verbosity #publish #removeprerelease