File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 57
57
|| startsWith(github.ref, 'refs/tags/'))
58
58
needs : [ changes, container ]
59
59
uses : ./.github/workflows/outputs.yml
60
+ with :
61
+ container : ${{ needs.changes.outputs.container == 'true' }}
Original file line number Diff line number Diff line change 1
1
name : Generate outputs
2
2
on :
3
3
workflow_call :
4
+ inputs :
5
+ container :
6
+ required : true
7
+ type : boolean
4
8
5
9
jobs :
6
10
re-generate :
@@ -39,15 +43,15 @@ jobs:
39
43
ref : ${{ github.event.pull_request.head.ref }}
40
44
repository : ${{ github.event.pull_request.head.repo.full_name }}
41
45
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
44
48
uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
45
49
with :
46
50
name : tutorial-container
47
51
path : /tmp
48
52
49
53
- 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
51
55
run : |
52
56
docker load --input /tmp/tutorial-container.tar
53
57
docker image ls -a
You can’t perform that action at this time.
0 commit comments