File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 95
95
fi
96
96
fi
97
97
98
+
98
99
# build
99
100
BUILD_ARTIFACTS_FOLDER=build-artifacts-$( date +%s)
100
101
if [ ${INPUT_MULTI_BINARIES^^} == ' TRUE' ]; then
178
179
MD5_SUM=$( md5sum ${RELEASE_ASSET_PATH} | cut -d ' ' -f 1)
179
180
SHA256_SUM=$( sha256sum ${RELEASE_ASSET_PATH} | cut -d ' ' -f 1)
180
181
181
- # prefix upload extra params
182
- GITHUB_ASSETS_UPLOADR_EXTRA_OPTIONS=' '
183
- if [ ${INPUT_OVERWRITE^^} == ' TRUE' ]; then
184
- GITHUB_ASSETS_UPLOADR_EXTRA_OPTIONS=" -overwrite"
185
- fi
186
-
187
- # base uploader command
188
- BASE_UPLOADER_COMMAND=" github-assets-uploader -logtostderr ${GITHUB_ASSETS_UPLOADR_EXTRA_OPTIONS} -repo ${RELEASE_REPO} -token ${INPUT_GITHUB_TOKEN} -tag=${RELEASE_TAG} -releasename=${RELEASE_NAME} -retry ${INPUT_RETRY} "
182
+ # uploader command
183
+ BASE_UPLOADER_COMMAND=" github-assets-uploader -logtostderr -repo ${RELEASE_REPO} -token ${INPUT_GITHUB_TOKEN} -tag=${RELEASE_TAG} -releasename=${RELEASE_NAME} -retry ${INPUT_RETRY} "
189
184
if [ ${GITHUB_SERVER_URL} != ' https://github.com' ]; then
190
185
BASE_UPLOADER_COMMAND=" ${BASE_UPLOADER_COMMAND} -baseurl ${GITHUB_SERVER_URL} "
191
186
fi
187
+ if [ ${INPUT_OVERWRITE^^} == ' TRUE' ]; then
188
+ BASE_UPLOADER_COMMAND=" ${BASE_UPLOADER_COMMAND} -overwrite"
189
+ fi
190
+
192
191
193
192
if [ ${INPUT_UPLOAD^^} == ' TRUE' ]; then
194
193
# update binary and checksum
You can’t perform that action at this time.
0 commit comments