File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 || startsWith(github.ref, 'refs/tags/'))
5858 needs : [ changes, container ]
5959 uses : ./.github/workflows/outputs.yml
60+ with :
61+ with_coverage : ${{ needs.changes.outputs.container == 'true' }}
Original file line number Diff line number Diff line change 11name : Generate outputs
22on :
33 workflow_call :
4+ inputs :
5+ container :
6+ required : true
7+ type : boolean
48
59jobs :
610 re-generate :
@@ -39,15 +43,15 @@ jobs:
3943 ref : ${{ github.event.pull_request.head.ref }}
4044 repository : ${{ github.event.pull_request.head.repo.full_name }}
4145
42- - name : Download container from artifact if PR
43- if : github.event_name == 'pull_request' && needs .container.result == 'success'
46+ - name : Download container if was previously created
47+ if : github.event_name == 'pull_request' && inputs .container
4448 uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
4549 with :
4650 name : tutorial-container
4751 path : /tmp
4852
4953 - name : Import container from PR artifact
50- if : github.event_name == 'pull_request' && needs .container.result == 'success'
54+ if : github.event_name == 'pull_request' && inputs .container
5155 run : |
5256 docker load --input /tmp/tutorial-container.tar
5357 docker image ls -a
You can’t perform that action at this time.
0 commit comments