1818 version : ${{ steps.output.outputs.version }}
1919 preview_enable : ${{ steps.output.outputs.preview_enable }}
2020 preview_infra_provider : ${{ steps.output.outputs.preview_infra_provider }}
21- with_github_actions : ${{ steps.output.outputs.with_github_actions }}
2221 build_no_cache : ${{ steps.output.outputs.build_no_cache }}
2322 build_no_test : ${{ steps.output.outputs.build_no_test }}
2423 build_leeway_target : ${{ steps.output.outputs.build_leeway_target }}
4443 {
4544 echo "is_main_branch=${{ (github.head_ref || github.ref) == 'refs/heads/main' }}"
4645 echo "version=${{ steps.branches.outputs.sanitized-branch-name }}-gha.${{github.run_number}}"
47- echo "with_github_actions=${{ contains(github.event.pull_request.body, '[x] /werft with-github-actions') }}"
4846 echo "preview_enable=${{ contains(github.event.pull_request.body, '[x] /werft with-preview') }}"
4947 echo "preview_infra_provider=${{ contains(github.event.pull_request.body, '[X] /werft with-gce-vm') && 'gce' || 'harvester' }}"
5048 echo "build_no_cache=${{ contains(github.event.pull_request.body, '[x] leeway-no-cache') }}"
6462 build-previewctl :
6563 name : Build previewctl
6664 needs : [configuration]
65+ if : ${{ needs.configuration.preview_enable == 'true' || needs.configuration.is_main_branch == 'true' }}
6766 concurrency :
6867 group : ${{ github.head_ref || github.ref }}-build-previewctl
6968 # see comment in build-gitpod below for context
9392
9493 infrastructure :
9594 needs : [configuration, build-previewctl]
96- if : ${{ needs.configuration.outputs.preview_enable == 'true' && needs.configuration.outputs.with_github_actions == 'true' }}
95+ if : ${{ needs.configuration.outputs.preview_enable == 'true' }}
9796 runs-on : [self-hosted]
9897 concurrency :
9998 group : ${{ github.head_ref || github.ref }}-infrastructure
@@ -112,7 +111,6 @@ jobs:
112111 build-gitpod :
113112 name : Build Gitpod
114113 needs : [configuration]
115- if : ${{ needs.configuration.outputs.is_main_branch == 'true' || needs.configuration.outputs.with_github_actions == 'true' }}
116114 runs-on : [self-hosted]
117115 concurrency :
118116 group : ${{ github.head_ref || github.ref }}-build-gitpod
@@ -196,9 +194,9 @@ jobs:
196194 PR_NO_TEST : ${{needs.configuration.outputs.build_no_test}}
197195 PR_LEEWAY_TARGET : ${{needs.configuration.outputs.build_leeway_target}}
198196 NPM_AUTH_TOKEN : ' ${{ steps.secrets.outputs.npm-auth-token }}'
199- PUBLISH_TO_NPM : ${{ needs.configuration.outputs.publish_to_npm == 'true' }}
197+ PUBLISH_TO_NPM : ${{ needs.configuration.outputs.publish_to_npm == 'true' || needs.configuration.outputs.is_main_branch == 'true' }}
200198 JB_MARKETPLACE_PUBLISH_TOKEN : ' ${{ steps.secrets.outputs.jb-marketplace-publish-token }}'
201- PUBLISH_TO_JBPM : ${{ needs.configuration.outputs.publish_to_jbmp == 'true' }}
199+ PUBLISH_TO_JBPM : ${{ needs.configuration.outputs.publish_to_jbmp == 'true' || needs.configuration.outputs.is_main_branch == 'true' }}
202200 CODECOV_TOKEN : ' ${{ steps.secrets.outputs.codecov-token }}'
203201 run : |
204202 [[ "$PR_NO_CACHE" = "true" ]] && CACHE="none" || CACHE="remote"
0 commit comments