We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3e0a249 + aebec9b commit 9ef22dfCopy full SHA for 9ef22df
1 file changed
list-release-assets.sh
@@ -4,7 +4,15 @@
4
# GET /repos/{owner}/{repo}/releases/{release_id}/assets
5
6
7
-release_id=${1:-1}
+# If the script is passed an argument $1 use that as the name
8
+if [ -z "$1" ]
9
+ then
10
+ #release_id=$(./list-releases.sh | jq -r '.[] |.id | max')
11
+ release_id=$(./list-releases.sh | jq '[.[].id] | max')
12
+ else
13
+ release_id=$1
14
+fi
15
+
16
17
curl ${curl_custom_flags} \
18
-H "Accept: application/vnd.github.v3+json" \
0 commit comments