File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 73
73
CODER_BASE_IMAGE_TAG : ${{ steps.set_tags.outputs.CODER_BASE_IMAGE_TAG }}
74
74
CODER_IMAGE_TAG : ${{ steps.set_tags.outputs.CODER_IMAGE_TAG }}
75
75
NEW : ${{ steps.check_deployment.outputs.NEW }}
76
- BUILD : ${{ steps.filter.outputs.all_count > steps.filter.outputs.ignored_count || steps.check_deployment.outputs.NEW }}
76
+ BUILD : |
77
+ ${{
78
+ (steps.filter.outputs.all_count > steps.filter.outputs.ignored_count) &&
79
+ (
80
+ (github.event_name == 'push' && steps.check_deployment.outputs.NEW == 'false') ||
81
+ github.event.inputs.build == 'true'
82
+ )
83
+ }}
77
84
78
85
runs-on : " ubuntu-latest"
79
86
steps :
@@ -165,12 +172,12 @@ jobs:
165
172
echo "CODER_BASE_IMAGE_TAG=${{ steps.set_tags.outputs.CODER_BASE_IMAGE_TAG }}"
166
173
echo "CODER_IMAGE_TAG=${{ steps.set_tags.outputs.CODER_IMAGE_TAG }}"
167
174
echo "NEW=${{ steps.check_deployment.outputs.NEW }}"
168
- echo "BUILD=${{ steps.filter.outputs.all_count > steps.filter.outputs.ignored_count || steps.check_deployment.outputs.NEW || github.event.inputs.build == 'true' }}"
175
+ echo "BUILD=${{ ( steps.filter.outputs.all_count > steps.filter.outputs.ignored_count) && ((github.event_name == 'push' && steps.check_deployment.outputs.NEW == 'false') || github.event.inputs.build == 'true') }}"
169
176
echo "GITHUB_REF=${{ github.ref }}"
170
177
171
178
comment-pr :
172
179
needs : [check_pr, get_info]
173
- if : ${{ needs.get_info.outputs.BUILD == 'true' || github.event.inputs.deploy == 'true' || github.event.inputs.build == 'true' }}
180
+ if : needs.get_info.outputs.BUILD == 'true' || github.event.inputs.deploy == 'true'
174
181
runs-on : " ubuntu-latest"
175
182
steps :
176
183
- name : Find Comment
You can’t perform that action at this time.
0 commit comments