File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 44
55PKG=" meeDamian/github-release@2.0"
66
7- echo " ::group::Process inputs"
8-
97#
108# # Input verification
119#
@@ -85,7 +83,6 @@ if [ -n "$release_id" ] && [ "$INPUT_ALLOW_OVERRIDE" != "true" ]; then
8583 exit 1
8684fi
8785
88- echo " ::endgroup::"
8986echo " ::group::Create Release"
9087
9188TMP=" $( mktemp -d) "
@@ -154,12 +151,13 @@ echo "::endgroup::"
154151#
155152# # Handle, and prepare assets
156153#
157- echo " ::group::Upload Assets "
154+
158155if [ -z " $INPUT_FILES " ]; then
159156 >&2 echo " No assets to upload. All done."
160157 exit 0
161158fi
162159
160+ echo " ::group::Upload Assets"
163161
164162assets=" $HOME /assets"
165163mkdir -p " $assets /"
@@ -260,13 +258,14 @@ for asset in "$assets"/*; do
260258done
261259
262260echo " ::endgroup::"
263- echo " ::group::Complete Release"
264261
265262if [ -n " $INPUT_DRAFT " ]; then
266263 >&2 echo " Draft status already correct. All done."
267264 exit 0
268265fi
269266
267+ echo " ::group::Complete Release"
268+
270269# Publish Release
271270# docs ref: https://developer.github.com/v3/repos/releases/#edit-a-release
272271status_code=" $( curl -sS -X PATCH -d ' {"draft": false}' \
@@ -282,6 +281,6 @@ if [ "$status_code" != "200" ]; then
282281 exit 1
283282fi
284283
285- >&2 echo " All done."
286-
287284echo " ::endgroup::"
285+
286+ >&2 echo " All done."
You can’t perform that action at this time.
0 commit comments