Skip to content

Commit 62a8769

Browse files
authored
Make dependency on container rebuild optional if exists for outputs (#410)
1 parent 7c392ba commit 62a8769

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ jobs:
4848
uses: ./.github/workflows/container.yml
4949

5050
outputs:
51-
if: ${{ needs.changes.outputs.outputs == 'true' || startsWith(github.ref, 'refs/tags/') }}
51+
if: |
52+
always()
53+
&& contains(needs.*.result, 'success')
54+
&& !contains(needs.*.result, 'failure')
55+
&& (needs.changes.outputs.outputs == 'true'
56+
|| startsWith(github.ref, 'refs/tags/'))
5257
needs: [ changes, container ]
5358
uses: ./.github/workflows/outputs.yml

0 commit comments

Comments
 (0)