Use commit sha of any annotated tag. (#85)
This commit is contained in:
@@ -2,14 +2,14 @@ mkdir actions_checkout
|
||||
pushd actions_checkout
|
||||
curl -s -S -L -o '85e6279cec87321a52edac9c87bce653a07cf6c2.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/85e6279cec87321a52edac9c87bce653a07cf6c2'
|
||||
curl -s -S -L -o '85e6279cec87321a52edac9c87bce653a07cf6c2.zip' 'https://api.github.com/repos/actions/checkout/zipball/85e6279cec87321a52edac9c87bce653a07cf6c2'
|
||||
curl -s -S -L -o '544eadc6bf3d226fd7a7a9f0dc5b5bf7ca0675b9.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/544eadc6bf3d226fd7a7a9f0dc5b5bf7ca0675b9'
|
||||
curl -s -S -L -o '544eadc6bf3d226fd7a7a9f0dc5b5bf7ca0675b9.zip' 'https://api.github.com/repos/actions/checkout/zipball/544eadc6bf3d226fd7a7a9f0dc5b5bf7ca0675b9'
|
||||
curl -s -S -L -o '50fbc622fc4ef5163becd7fab6573eac35f8462e.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/50fbc622fc4ef5163becd7fab6573eac35f8462e'
|
||||
curl -s -S -L -o '50fbc622fc4ef5163becd7fab6573eac35f8462e.zip' 'https://api.github.com/repos/actions/checkout/zipball/50fbc622fc4ef5163becd7fab6573eac35f8462e'
|
||||
curl -s -S -L -o 'af513c7a016048ae468971c52ed77d9562c7c819.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/af513c7a016048ae468971c52ed77d9562c7c819'
|
||||
curl -s -S -L -o 'af513c7a016048ae468971c52ed77d9562c7c819.zip' 'https://api.github.com/repos/actions/checkout/zipball/af513c7a016048ae468971c52ed77d9562c7c819'
|
||||
curl -s -S -L -o 'ec3afacf7f605c9fc12c70bc1c9e1708ddb99eca.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/ec3afacf7f605c9fc12c70bc1c9e1708ddb99eca'
|
||||
curl -s -S -L -o 'ec3afacf7f605c9fc12c70bc1c9e1708ddb99eca.zip' 'https://api.github.com/repos/actions/checkout/zipball/ec3afacf7f605c9fc12c70bc1c9e1708ddb99eca'
|
||||
curl -s -S -L -o 'a2ca40438991a1ab62db1b7cad0fd4e36a2ac254.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/a2ca40438991a1ab62db1b7cad0fd4e36a2ac254'
|
||||
curl -s -S -L -o 'a2ca40438991a1ab62db1b7cad0fd4e36a2ac254.zip' 'https://api.github.com/repos/actions/checkout/zipball/a2ca40438991a1ab62db1b7cad0fd4e36a2ac254'
|
||||
curl -s -S -L -o '0b496e91ec7ae4428c3ed2eeb4c3a40df431f2cc.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/0b496e91ec7ae4428c3ed2eeb4c3a40df431f2cc'
|
||||
curl -s -S -L -o '0b496e91ec7ae4428c3ed2eeb4c3a40df431f2cc.zip' 'https://api.github.com/repos/actions/checkout/zipball/0b496e91ec7ae4428c3ed2eeb4c3a40df431f2cc'
|
||||
curl -s -S -L -o '50fbc622fc4ef5163becd7fab6573eac35f8462e.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/50fbc622fc4ef5163becd7fab6573eac35f8462e'
|
||||
curl -s -S -L -o '50fbc622fc4ef5163becd7fab6573eac35f8462e.zip' 'https://api.github.com/repos/actions/checkout/zipball/50fbc622fc4ef5163becd7fab6573eac35f8462e'
|
||||
curl -s -S -L -o 'ee0669bd1cc54295c223e0bb666b733df41de1c5.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/ee0669bd1cc54295c223e0bb666b733df41de1c5'
|
||||
curl -s -S -L -o 'ee0669bd1cc54295c223e0bb666b733df41de1c5.zip' 'https://api.github.com/repos/actions/checkout/zipball/ee0669bd1cc54295c223e0bb666b733df41de1c5'
|
||||
curl -s -S -L -o '722adc63f1aa60a57ec37892e133b1d319cae598.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/722adc63f1aa60a57ec37892e133b1d319cae598'
|
||||
|
||||
@@ -22,8 +22,8 @@ curl -s -S -L -o '8de2f9fcbc73a4ff49e2c9df61041a0f03f10914.tar.gz' 'https://api.
|
||||
curl -s -S -L -o '8de2f9fcbc73a4ff49e2c9df61041a0f03f10914.zip' 'https://api.github.com/repos/actions/setup-node/zipball/8de2f9fcbc73a4ff49e2c9df61041a0f03f10914'
|
||||
curl -s -S -L -o 'c35dd24c52f85b8c80fd1619f6bc7b9e82c840db.tar.gz' 'https://api.github.com/repos/actions/setup-node/tarball/c35dd24c52f85b8c80fd1619f6bc7b9e82c840db'
|
||||
curl -s -S -L -o 'c35dd24c52f85b8c80fd1619f6bc7b9e82c840db.zip' 'https://api.github.com/repos/actions/setup-node/zipball/c35dd24c52f85b8c80fd1619f6bc7b9e82c840db'
|
||||
curl -s -S -L -o '280ca3d133fb567e0329575ed7c5eac74034e25d.tar.gz' 'https://api.github.com/repos/actions/setup-node/tarball/280ca3d133fb567e0329575ed7c5eac74034e25d'
|
||||
curl -s -S -L -o '280ca3d133fb567e0329575ed7c5eac74034e25d.zip' 'https://api.github.com/repos/actions/setup-node/zipball/280ca3d133fb567e0329575ed7c5eac74034e25d'
|
||||
curl -s -S -L -o 'b6651e20e530d6e6b845a9828606779e89f5529c.tar.gz' 'https://api.github.com/repos/actions/setup-node/tarball/b6651e20e530d6e6b845a9828606779e89f5529c'
|
||||
curl -s -S -L -o 'b6651e20e530d6e6b845a9828606779e89f5529c.zip' 'https://api.github.com/repos/actions/setup-node/zipball/b6651e20e530d6e6b845a9828606779e89f5529c'
|
||||
curl -s -S -L -o '1c5c1375b3817ad821719597effe8e3d6f764930.tar.gz' 'https://api.github.com/repos/actions/setup-node/tarball/1c5c1375b3817ad821719597effe8e3d6f764930'
|
||||
curl -s -S -L -o '1c5c1375b3817ad821719597effe8e3d6f764930.zip' 'https://api.github.com/repos/actions/setup-node/zipball/1c5c1375b3817ad821719597effe8e3d6f764930'
|
||||
curl -s -S -L -o '83c9f7a7df54d6b57455f7c57ac414f2ae5fb8de.tar.gz' 'https://api.github.com/repos/actions/setup-node/tarball/83c9f7a7df54d6b57455f7c57ac414f2ae5fb8de'
|
||||
|
||||
@@ -4,10 +4,10 @@ curl -s -S -L -o 'e348410e00f449ece8581cb8e88be8f0e7712da6.tar.gz' 'https://api.
|
||||
curl -s -S -L -o 'e348410e00f449ece8581cb8e88be8f0e7712da6.zip' 'https://api.github.com/repos/actions/setup-python/zipball/e348410e00f449ece8581cb8e88be8f0e7712da6'
|
||||
curl -s -S -L -o 'e9aba2c848f5ebd159c070c61ea2c4e2b122355e.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/e9aba2c848f5ebd159c070c61ea2c4e2b122355e'
|
||||
curl -s -S -L -o 'e9aba2c848f5ebd159c070c61ea2c4e2b122355e.zip' 'https://api.github.com/repos/actions/setup-python/zipball/e9aba2c848f5ebd159c070c61ea2c4e2b122355e'
|
||||
curl -s -S -L -o '79a60bc5f81b5089e080e675ad1f542941c1e8c0.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/79a60bc5f81b5089e080e675ad1f542941c1e8c0'
|
||||
curl -s -S -L -o '79a60bc5f81b5089e080e675ad1f542941c1e8c0.zip' 'https://api.github.com/repos/actions/setup-python/zipball/79a60bc5f81b5089e080e675ad1f542941c1e8c0'
|
||||
curl -s -S -L -o '7bde172dfb90397260b315393bc3a0e2e23f3303.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/7bde172dfb90397260b315393bc3a0e2e23f3303'
|
||||
curl -s -S -L -o '7bde172dfb90397260b315393bc3a0e2e23f3303.zip' 'https://api.github.com/repos/actions/setup-python/zipball/7bde172dfb90397260b315393bc3a0e2e23f3303'
|
||||
curl -s -S -L -o '6c4e46d258ee4bf9a1263c78a91ec029bbe54cf0.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/6c4e46d258ee4bf9a1263c78a91ec029bbe54cf0'
|
||||
curl -s -S -L -o '6c4e46d258ee4bf9a1263c78a91ec029bbe54cf0.zip' 'https://api.github.com/repos/actions/setup-python/zipball/6c4e46d258ee4bf9a1263c78a91ec029bbe54cf0'
|
||||
curl -s -S -L -o '807b74f98ca701f414ddaa8a4187e7cffa93cbbd.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/807b74f98ca701f414ddaa8a4187e7cffa93cbbd'
|
||||
curl -s -S -L -o '807b74f98ca701f414ddaa8a4187e7cffa93cbbd.zip' 'https://api.github.com/repos/actions/setup-python/zipball/807b74f98ca701f414ddaa8a4187e7cffa93cbbd'
|
||||
curl -s -S -L -o '7a69c2bc7dc38832443a11bc7c2550ba96c6f45c.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/7a69c2bc7dc38832443a11bc7c2550ba96c6f45c'
|
||||
curl -s -S -L -o '7a69c2bc7dc38832443a11bc7c2550ba96c6f45c.zip' 'https://api.github.com/repos/actions/setup-python/zipball/7a69c2bc7dc38832443a11bc7c2550ba96c6f45c'
|
||||
curl -s -S -L -o '7010ec794f55ed6e9a6b0fa34cdfcc5bbc6137b2.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/7010ec794f55ed6e9a6b0fa34cdfcc5bbc6137b2'
|
||||
|
||||
@@ -2,10 +2,10 @@ mkdir actions_upload-artifact
|
||||
pushd actions_upload-artifact
|
||||
curl -s -S -L -o '6027e3dd177782cd8ab9af838c04fd81a07f1d47.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/6027e3dd177782cd8ab9af838c04fd81a07f1d47'
|
||||
curl -s -S -L -o '6027e3dd177782cd8ab9af838c04fd81a07f1d47.zip' 'https://api.github.com/repos/actions/upload-artifact/zipball/6027e3dd177782cd8ab9af838c04fd81a07f1d47'
|
||||
curl -s -S -L -o '34622df80861c3ed63eb2bff892de2f1fbf4c9da.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/34622df80861c3ed63eb2bff892de2f1fbf4c9da'
|
||||
curl -s -S -L -o '34622df80861c3ed63eb2bff892de2f1fbf4c9da.zip' 'https://api.github.com/repos/actions/upload-artifact/zipball/34622df80861c3ed63eb2bff892de2f1fbf4c9da'
|
||||
curl -s -S -L -o '631c3ac5d8cc76468d617056d13b8b27e16b2f92.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/631c3ac5d8cc76468d617056d13b8b27e16b2f92'
|
||||
curl -s -S -L -o '631c3ac5d8cc76468d617056d13b8b27e16b2f92.zip' 'https://api.github.com/repos/actions/upload-artifact/zipball/631c3ac5d8cc76468d617056d13b8b27e16b2f92'
|
||||
curl -s -S -L -o '3446296876d12d4e3a0f3145a3c87e67bf0a16b5.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/3446296876d12d4e3a0f3145a3c87e67bf0a16b5'
|
||||
curl -s -S -L -o '3446296876d12d4e3a0f3145a3c87e67bf0a16b5.zip' 'https://api.github.com/repos/actions/upload-artifact/zipball/3446296876d12d4e3a0f3145a3c87e67bf0a16b5'
|
||||
curl -s -S -L -o '3446296876d12d4e3a0f3145a3c87e67bf0a16b5.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/3446296876d12d4e3a0f3145a3c87e67bf0a16b5'
|
||||
curl -s -S -L -o '3446296876d12d4e3a0f3145a3c87e67bf0a16b5.zip' 'https://api.github.com/repos/actions/upload-artifact/zipball/3446296876d12d4e3a0f3145a3c87e67bf0a16b5'
|
||||
curl -s -S -L -o '82c141cc518b40d92cc801eee768e7aafc9c2fa2.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/82c141cc518b40d92cc801eee768e7aafc9c2fa2'
|
||||
curl -s -S -L -o '82c141cc518b40d92cc801eee768e7aafc9c2fa2.zip' 'https://api.github.com/repos/actions/upload-artifact/zipball/82c141cc518b40d92cc801eee768e7aafc9c2fa2'
|
||||
curl -s -S -L -o '97b7dace6c8d860ce9708aba808be6a2ee4cbc3a.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/97b7dace6c8d860ce9708aba808be6a2ee4cbc3a'
|
||||
|
||||
@@ -40,15 +40,14 @@ for json_file in $script_dir/../../config/actions/*.json; do
|
||||
curl_download_commands+=("curl -s -S -L -o '$sha.zip' 'https://api.github.com/repos/$owner/$repo/zipball/$sha'")
|
||||
done
|
||||
|
||||
# Get an array of tag info. Each item contains "<tag> <tag_or_commit_sha> <commit_sha>"
|
||||
# Get an array of tag info. Each item contains "<tag> <commit_sha>"
|
||||
tag_info=()
|
||||
IFS=$'\n' read -r -d '' -a tag_info < <( echo "$json" | jq --raw-output '.tags | to_entries | .[] | .key + " " + if .value.tag? then .value.tag else .value.commit end + " " + .value.commit' && printf '\0' )
|
||||
IFS=$'\n' read -r -d '' -a tag_info < <( echo "$json" | jq --raw-output '.tags | to_entries | .[] | .key + " " + .value.commit' && printf '\0' )
|
||||
|
||||
for item in "${tag_info[@]}"; do
|
||||
split=( $(echo $item) )
|
||||
tag="${split[0]}"
|
||||
sha="${split[1]}"
|
||||
commit="${split[2]}"
|
||||
|
||||
# Append curl download command
|
||||
curl_download_commands+=("curl -s -S -L -o '$sha.tar.gz' 'https://api.github.com/repos/$owner/$repo/tarball/$sha'")
|
||||
|
||||
Reference in New Issue
Block a user