Hide generated release archives
This commit is contained in:
1 parent
e061d374ba
commit
b534c13b40
1 file changed
+9
@@ -137,6 +137,7 @@ jobs:
|
||||
body: `Automated release ${tag}`,
|
||||
draft: false,
|
||||
prerelease: tag.includes('-'),
|
||||
hide_archive_links: true,
|
||||
}));
|
||||
NODE
|
||||
)"
|
||||
@@ -155,6 +156,14 @@ jobs:
|
||||
;;
|
||||
esac
|
||||
|
||||
curl --silent --show-error --fail \
|
||||
--request PATCH \
|
||||
--header "Authorization: token ${token}" \
|
||||
--header 'Content-Type: application/json' \
|
||||
--data-binary '{"hide_archive_links":true}' \
|
||||
"${api}/repos/${repository}/releases/${release_id}" \
|
||||
>/dev/null
|
||||
|
||||
assets_json="$(mktemp)"
|
||||
curl --silent --show-error --fail --output "$assets_json" \
|
||||
--header "Authorization: token ${token}" \
|
||||
|
||||
Reference in new issue
Block a user