File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5959 || startsWith(github.ref, 'refs/tags/'))
6060 needs : [ changes, container ]
6161 uses : ./.github/workflows/outputs.yml
62+ with :
63+ with_pr_container : ${{ needs.container.result }}
6264
6365 style :
6466 if : ${{ needs.changes.outputs.style == 'true' }}
Original file line number Diff line number Diff line change 11name : Generate outputs
22on :
33 workflow_call :
4+ inputs :
5+ with_pr_container :
6+ required : true
7+ type : string
48
59jobs :
610 re-generate :
@@ -40,14 +44,14 @@ jobs:
4044 repository : ${{ github.event.pull_request.head.repo.full_name }}
4145
4246 - name : Download container from artifact if PR
43- if : github.event_name == 'pull_request' && needs.container.result == 'success '
47+ if : github.event_name == 'pull_request' && inputs.with_pr_container == 'true '
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.with_pr_container == 'true '
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