File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 38
38
shell : bash
39
39
run : |
40
40
mkdir info
41
- echo "${{ steps.create_tag.outputs.tag }}" > info/tag
42
41
echo "${{ steps.create_release.outputs.id }}" > info/release_id
43
42
echo "${{ steps.create_release.outputs.upload_url }}" > info/upload_url
44
43
- uses : actions/upload-artifact@v1
@@ -138,36 +137,22 @@ jobs:
138
137
needs : [build]
139
138
runs-on : ubuntu-latest
140
139
steps :
141
- - uses : actions/checkout@v2
142
- with :
143
- ref : metadata
144
- fetch-depth : 0
145
140
- uses : actions/download-artifact@v1
146
141
with :
147
142
name : info
148
143
- name : Set publish_info
149
144
id : publish_info
150
145
shell : bash
151
146
run : |
152
- tag=$(cat info/tag)
153
147
release_id=$(cat info/release_id)
154
- echo "::set-output name=tag::$tag"
155
148
echo "::set-output name=release_id::$release_id"
156
149
- uses : eregon/publish-release@v1
157
150
env :
158
151
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
159
152
with :
160
153
release_id : ${{ steps.publish_info.outputs.release_id }}
161
- - shell : bash
162
- run : |
163
- echo "${{ steps.publish_info.outputs.tag }}" > latest_build.tag
164
- git config user.name "GitHub Actions"
165
- git config user.email [email protected]
166
- git commit -a -m 'Update latest_build.tag'
167
- git push
168
154
- uses : eregon/keep-last-n-releases@v1
169
155
env :
170
156
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
171
157
with :
172
158
n : 3
173
- last_tag_file : latest_build.tag
You can’t perform that action at this time.
0 commit comments