better condition

This commit is contained in:
Jean-Christian Denis 2024-12-10 00:29:55 +01:00
parent 6e25ce5ee8
commit 16ecb5d9f5
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -90,13 +90,13 @@ jobs:
branch: ${{ needs.check_image.outputs.version }} branch: ${{ needs.check_image.outputs.version }}
- name: notcreated - name: notcreated
if: ((needs.check_image.outputs.has_branch == 'false') || (github.event.inputs.force_rebuild == 'true')) && (steps.create.outputs.created == 'false') if: (steps.create.outputs.created != 'true')
run: | run: |
SUMMARY=$'Branch ${{ needs.check_image.outputs.version }} has not been created.' SUMMARY=$'Branch ${{ needs.check_image.outputs.version }} has not been created.'
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY
- name: created - name: created
if: ((needs.check_image.outputs.has_branch == 'false') || (github.event.inputs.force_rebuild == 'true')) && (steps.create.outputs.created == 'true') if: (steps.create.outputs.created == 'true')
run: | run: |
SUMMARY=$' Branch ${{ needs.check_image.outputs.version }} has been created.' SUMMARY=$' Branch ${{ needs.check_image.outputs.version }} has been created.'
echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY