21
21
outputs :
22
22
is_main_branch : ${{ (github.head_ref || github.ref) == 'refs/heads/main' }}
23
23
version : ${{ steps.branches.outputs.sanitized-branch-name }}-gha.${{github.run_number}}
24
- with_github_actions : ${{ contains( steps.pr-details.outputs.pr_body, '[x] /werft with-github-actions') }}
25
24
preview_enable : ${{ contains( steps.pr-details.outputs.pr_body, '[x] /werft with-preview') }}
26
25
preview_infra_provider : ${{ contains( steps.pr-details.outputs.pr_body, '[X] /werft with-gce-vm') && 'gce' || 'harvester' }}
27
26
build_no_cache : ${{ contains( steps.pr-details.outputs.pr_body, '[x] leeway-no-cache') }}
37
36
analytics : ${{ contains( steps.pr-details.outputs.pr_body, '[X] analytics') }}
38
37
workspace_feature_flags : ${{ steps.output.outputs.workspace_feature_flags }}
39
38
pr_no_diff_skip : ${{ steps.pr-diff.outputs.pr_no_diff_skip }}
39
+ with_werft : ${{ steps.output.outputs.with-werft }}
40
40
steps :
41
41
- name : " Determine Branch"
42
42
id : branches
74
74
name : Build previewctl
75
75
if : |
76
76
(needs.configuration.outputs.pr_no_diff_skip != 'true') &&
77
- (needs.configuration.outputs.is_main_branch == 'true' || needs.configuration.outputs. preview_enable == 'true')
77
+ (needs.configuration.outputs.preview_enable == 'true')
78
78
needs : [ configuration ]
79
79
concurrency :
80
80
group : ${{ github.head_ref || github.ref }}-build-previewctl
@@ -112,7 +112,7 @@ jobs:
112
112
needs : [ configuration, build-previewctl ]
113
113
if : |
114
114
(needs.configuration.outputs.pr_no_diff_skip != 'true') &&
115
- (needs.configuration.outputs.preview_enable == 'true' && needs.configuration.outputs.with_github_actions == 'true' )
115
+ (needs.configuration.outputs.preview_enable == 'true')
116
116
runs-on : [ self-hosted ]
117
117
concurrency :
118
118
group : ${{ github.head_ref || github.ref }}-infrastructure
@@ -134,7 +134,7 @@ jobs:
134
134
needs : [ configuration ]
135
135
if : |
136
136
(needs.configuration.outputs.pr_no_diff_skip != 'true') &&
137
- (needs.configuration.outputs.is_main_branch == 'true' || needs.configuration.outputs. with_github_actions == 'true')
137
+ (needs.configuration.outputs.with_github_actions == 'true')
138
138
runs-on : [ self-hosted ]
139
139
concurrency :
140
140
group : ${{ github.head_ref || github.ref }}-build-gitpod
@@ -218,9 +218,9 @@ jobs:
218
218
PR_NO_TEST : ${{needs.configuration.outputs.build_no_test}}
219
219
PR_LEEWAY_TARGET : ${{needs.configuration.outputs.build_leeway_target}}
220
220
NPM_AUTH_TOKEN : ' ${{ steps.secrets.outputs.npm-auth-token }}'
221
- PUBLISH_TO_NPM : ${{ needs.configuration.outputs.publish_to_npm == 'true' }}
221
+ PUBLISH_TO_NPM : ${{ needs.configuration.outputs.publish_to_npm == 'true' || needs.configuration.outputs.is_main_branch == 'true' }}
222
222
JB_MARKETPLACE_PUBLISH_TOKEN : ' ${{ steps.secrets.outputs.jb-marketplace-publish-token }}'
223
- PUBLISH_TO_JBPM : ${{ needs.configuration.outputs.publish_to_jbmp == 'true' }}
223
+ PUBLISH_TO_JBPM : ${{ needs.configuration.outputs.publish_to_jbmp == 'true' || needs.configuration.outputs.is_main_branch == 'true' }}
224
224
CODECOV_TOKEN : ' ${{ steps.secrets.outputs.codecov-token }}'
225
225
run : |
226
226
[[ "$PR_NO_CACHE" = "true" ]] && CACHE="none" || CACHE="remote"
0 commit comments