44 push :
55 branches :
66 - ' **'
7+ pull_request :
78 delete :
89
910jobs :
@@ -16,11 +17,26 @@ jobs:
1617 node-version : 12.x
1718
1819 - uses : actions/checkout@v2
20+
21+ - name : Output info
22+ id : info
23+ run : |
24+ if [ '${{ github.event_name }}' = 'pull_request' ]; then
25+ echo '::set-output name=commit_message::'
26+ exit 0
27+ fi
28+ echo '::set-output name=commit_message::[auto]'
1929
2030 - uses : satackey/push-prebuilt-action@v0.2.0-beta3
2131 with :
32+ commit-message : ${{ steps.info.outputs.commit_message }}
2233 push-branch : ' {branch}-release'
2334
35+ - uses : actions/upload-artifact@v2
36+ with :
37+ name : built
38+ path : ./
39+
2440 #
2541 # test built image caching
2642
@@ -37,11 +53,11 @@ jobs:
3753 id : extract
3854 run : |
3955 echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
40-
41- - uses : actions/checkout@v2
42- name : Pull action
56+
57+ - name : Download action
58+ uses : actions/download-artifact@v2
4359 with :
44- ref : ${{ steps.extract.outputs.branch }}-release
60+ name : built
4561 path : action-dlc
4662
4763 - uses : ./action-dlc
@@ -66,10 +82,10 @@ jobs:
6682 run : |
6783 echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
6884
69- - uses : actions/checkout@v2
70- name : Pull action
85+ - name : Download action
86+ uses : actions/download-artifact@v2
7187 with :
72- ref : ${{ steps.extract.outputs.branch }}-release
88+ name : built
7389 path : action-dlc
7490
7591 - uses : ./action-dlc
@@ -115,10 +131,10 @@ jobs:
115131 run : |
116132 echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
117133
118- - uses : actions/checkout@v2
119- name : Pull action
134+ - name : Download action
135+ uses : actions/download-artifact@v2
120136 with :
121- ref : ${{ steps.extract.outputs.branch }}-release
137+ name : built
122138 path : action-dlc
123139
124140 - uses : ./action-dlc
@@ -140,10 +156,10 @@ jobs:
140156 run : |
141157 echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
142158
143- - uses : actions/checkout@v2
144- name : Pull action
159+ - name : Download action
160+ uses : actions/download-artifact@v2
145161 with :
146- ref : ${{ steps.extract.outputs.branch }}-release
162+ name : built
147163 path : action-dlc
148164
149165 - uses : ./action-dlc
0 commit comments