Skip to content

Commit d2cd21e

Browse files
authored
Use commit sha of any annotated tag. (#85)
1 parent ed4fba8 commit d2cd21e

File tree

5 files changed

+18
-19
lines changed

5 files changed

+18
-19
lines changed

script/generated/actions_checkout.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ mkdir actions_checkout
22
pushd actions_checkout
33
curl -s -S -L -o '85e6279cec87321a52edac9c87bce653a07cf6c2.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/85e6279cec87321a52edac9c87bce653a07cf6c2'
44
curl -s -S -L -o '85e6279cec87321a52edac9c87bce653a07cf6c2.zip' 'https://api.github.com/repos/actions/checkout/zipball/85e6279cec87321a52edac9c87bce653a07cf6c2'
5-
curl -s -S -L -o '544eadc6bf3d226fd7a7a9f0dc5b5bf7ca0675b9.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/544eadc6bf3d226fd7a7a9f0dc5b5bf7ca0675b9'
6-
curl -s -S -L -o '544eadc6bf3d226fd7a7a9f0dc5b5bf7ca0675b9.zip' 'https://api.github.com/repos/actions/checkout/zipball/544eadc6bf3d226fd7a7a9f0dc5b5bf7ca0675b9'
5+
curl -s -S -L -o '50fbc622fc4ef5163becd7fab6573eac35f8462e.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/50fbc622fc4ef5163becd7fab6573eac35f8462e'
6+
curl -s -S -L -o '50fbc622fc4ef5163becd7fab6573eac35f8462e.zip' 'https://api.github.com/repos/actions/checkout/zipball/50fbc622fc4ef5163becd7fab6573eac35f8462e'
77
curl -s -S -L -o 'af513c7a016048ae468971c52ed77d9562c7c819.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/af513c7a016048ae468971c52ed77d9562c7c819'
88
curl -s -S -L -o 'af513c7a016048ae468971c52ed77d9562c7c819.zip' 'https://api.github.com/repos/actions/checkout/zipball/af513c7a016048ae468971c52ed77d9562c7c819'
9-
curl -s -S -L -o 'ec3afacf7f605c9fc12c70bc1c9e1708ddb99eca.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/ec3afacf7f605c9fc12c70bc1c9e1708ddb99eca'
10-
curl -s -S -L -o 'ec3afacf7f605c9fc12c70bc1c9e1708ddb99eca.zip' 'https://api.github.com/repos/actions/checkout/zipball/ec3afacf7f605c9fc12c70bc1c9e1708ddb99eca'
11-
curl -s -S -L -o 'a2ca40438991a1ab62db1b7cad0fd4e36a2ac254.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/a2ca40438991a1ab62db1b7cad0fd4e36a2ac254'
12-
curl -s -S -L -o 'a2ca40438991a1ab62db1b7cad0fd4e36a2ac254.zip' 'https://api.github.com/repos/actions/checkout/zipball/a2ca40438991a1ab62db1b7cad0fd4e36a2ac254'
9+
curl -s -S -L -o '0b496e91ec7ae4428c3ed2eeb4c3a40df431f2cc.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/0b496e91ec7ae4428c3ed2eeb4c3a40df431f2cc'
10+
curl -s -S -L -o '0b496e91ec7ae4428c3ed2eeb4c3a40df431f2cc.zip' 'https://api.github.com/repos/actions/checkout/zipball/0b496e91ec7ae4428c3ed2eeb4c3a40df431f2cc'
11+
curl -s -S -L -o '50fbc622fc4ef5163becd7fab6573eac35f8462e.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/50fbc622fc4ef5163becd7fab6573eac35f8462e'
12+
curl -s -S -L -o '50fbc622fc4ef5163becd7fab6573eac35f8462e.zip' 'https://api.github.com/repos/actions/checkout/zipball/50fbc622fc4ef5163becd7fab6573eac35f8462e'
1313
curl -s -S -L -o 'ee0669bd1cc54295c223e0bb666b733df41de1c5.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/ee0669bd1cc54295c223e0bb666b733df41de1c5'
1414
curl -s -S -L -o 'ee0669bd1cc54295c223e0bb666b733df41de1c5.zip' 'https://api.github.com/repos/actions/checkout/zipball/ee0669bd1cc54295c223e0bb666b733df41de1c5'
1515
curl -s -S -L -o '722adc63f1aa60a57ec37892e133b1d319cae598.tar.gz' 'https://api.github.com/repos/actions/checkout/tarball/722adc63f1aa60a57ec37892e133b1d319cae598'

script/generated/actions_setup-node.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ curl -s -S -L -o '8de2f9fcbc73a4ff49e2c9df61041a0f03f10914.tar.gz' 'https://api.
2222
curl -s -S -L -o '8de2f9fcbc73a4ff49e2c9df61041a0f03f10914.zip' 'https://api.github.com/repos/actions/setup-node/zipball/8de2f9fcbc73a4ff49e2c9df61041a0f03f10914'
2323
curl -s -S -L -o 'c35dd24c52f85b8c80fd1619f6bc7b9e82c840db.tar.gz' 'https://api.github.com/repos/actions/setup-node/tarball/c35dd24c52f85b8c80fd1619f6bc7b9e82c840db'
2424
curl -s -S -L -o 'c35dd24c52f85b8c80fd1619f6bc7b9e82c840db.zip' 'https://api.github.com/repos/actions/setup-node/zipball/c35dd24c52f85b8c80fd1619f6bc7b9e82c840db'
25-
curl -s -S -L -o '280ca3d133fb567e0329575ed7c5eac74034e25d.tar.gz' 'https://api.github.com/repos/actions/setup-node/tarball/280ca3d133fb567e0329575ed7c5eac74034e25d'
26-
curl -s -S -L -o '280ca3d133fb567e0329575ed7c5eac74034e25d.zip' 'https://api.github.com/repos/actions/setup-node/zipball/280ca3d133fb567e0329575ed7c5eac74034e25d'
25+
curl -s -S -L -o 'b6651e20e530d6e6b845a9828606779e89f5529c.tar.gz' 'https://api.github.com/repos/actions/setup-node/tarball/b6651e20e530d6e6b845a9828606779e89f5529c'
26+
curl -s -S -L -o 'b6651e20e530d6e6b845a9828606779e89f5529c.zip' 'https://api.github.com/repos/actions/setup-node/zipball/b6651e20e530d6e6b845a9828606779e89f5529c'
2727
curl -s -S -L -o '1c5c1375b3817ad821719597effe8e3d6f764930.tar.gz' 'https://api.github.com/repos/actions/setup-node/tarball/1c5c1375b3817ad821719597effe8e3d6f764930'
2828
curl -s -S -L -o '1c5c1375b3817ad821719597effe8e3d6f764930.zip' 'https://api.github.com/repos/actions/setup-node/zipball/1c5c1375b3817ad821719597effe8e3d6f764930'
2929
curl -s -S -L -o '83c9f7a7df54d6b57455f7c57ac414f2ae5fb8de.tar.gz' 'https://api.github.com/repos/actions/setup-node/tarball/83c9f7a7df54d6b57455f7c57ac414f2ae5fb8de'

script/generated/actions_setup-python.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ curl -s -S -L -o 'e348410e00f449ece8581cb8e88be8f0e7712da6.tar.gz' 'https://api.
44
curl -s -S -L -o 'e348410e00f449ece8581cb8e88be8f0e7712da6.zip' 'https://api.github.com/repos/actions/setup-python/zipball/e348410e00f449ece8581cb8e88be8f0e7712da6'
55
curl -s -S -L -o 'e9aba2c848f5ebd159c070c61ea2c4e2b122355e.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/e9aba2c848f5ebd159c070c61ea2c4e2b122355e'
66
curl -s -S -L -o 'e9aba2c848f5ebd159c070c61ea2c4e2b122355e.zip' 'https://api.github.com/repos/actions/setup-python/zipball/e9aba2c848f5ebd159c070c61ea2c4e2b122355e'
7-
curl -s -S -L -o '79a60bc5f81b5089e080e675ad1f542941c1e8c0.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/79a60bc5f81b5089e080e675ad1f542941c1e8c0'
8-
curl -s -S -L -o '79a60bc5f81b5089e080e675ad1f542941c1e8c0.zip' 'https://api.github.com/repos/actions/setup-python/zipball/79a60bc5f81b5089e080e675ad1f542941c1e8c0'
9-
curl -s -S -L -o '7bde172dfb90397260b315393bc3a0e2e23f3303.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/7bde172dfb90397260b315393bc3a0e2e23f3303'
10-
curl -s -S -L -o '7bde172dfb90397260b315393bc3a0e2e23f3303.zip' 'https://api.github.com/repos/actions/setup-python/zipball/7bde172dfb90397260b315393bc3a0e2e23f3303'
7+
curl -s -S -L -o '6c4e46d258ee4bf9a1263c78a91ec029bbe54cf0.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/6c4e46d258ee4bf9a1263c78a91ec029bbe54cf0'
8+
curl -s -S -L -o '6c4e46d258ee4bf9a1263c78a91ec029bbe54cf0.zip' 'https://api.github.com/repos/actions/setup-python/zipball/6c4e46d258ee4bf9a1263c78a91ec029bbe54cf0'
9+
curl -s -S -L -o '807b74f98ca701f414ddaa8a4187e7cffa93cbbd.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/807b74f98ca701f414ddaa8a4187e7cffa93cbbd'
10+
curl -s -S -L -o '807b74f98ca701f414ddaa8a4187e7cffa93cbbd.zip' 'https://api.github.com/repos/actions/setup-python/zipball/807b74f98ca701f414ddaa8a4187e7cffa93cbbd'
1111
curl -s -S -L -o '7a69c2bc7dc38832443a11bc7c2550ba96c6f45c.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/7a69c2bc7dc38832443a11bc7c2550ba96c6f45c'
1212
curl -s -S -L -o '7a69c2bc7dc38832443a11bc7c2550ba96c6f45c.zip' 'https://api.github.com/repos/actions/setup-python/zipball/7a69c2bc7dc38832443a11bc7c2550ba96c6f45c'
1313
curl -s -S -L -o '7010ec794f55ed6e9a6b0fa34cdfcc5bbc6137b2.tar.gz' 'https://api.github.com/repos/actions/setup-python/tarball/7010ec794f55ed6e9a6b0fa34cdfcc5bbc6137b2'

script/generated/actions_upload-artifact.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ mkdir actions_upload-artifact
22
pushd actions_upload-artifact
33
curl -s -S -L -o '6027e3dd177782cd8ab9af838c04fd81a07f1d47.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/6027e3dd177782cd8ab9af838c04fd81a07f1d47'
44
curl -s -S -L -o '6027e3dd177782cd8ab9af838c04fd81a07f1d47.zip' 'https://api.github.com/repos/actions/upload-artifact/zipball/6027e3dd177782cd8ab9af838c04fd81a07f1d47'
5-
curl -s -S -L -o '34622df80861c3ed63eb2bff892de2f1fbf4c9da.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/34622df80861c3ed63eb2bff892de2f1fbf4c9da'
6-
curl -s -S -L -o '34622df80861c3ed63eb2bff892de2f1fbf4c9da.zip' 'https://api.github.com/repos/actions/upload-artifact/zipball/34622df80861c3ed63eb2bff892de2f1fbf4c9da'
7-
curl -s -S -L -o '631c3ac5d8cc76468d617056d13b8b27e16b2f92.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/631c3ac5d8cc76468d617056d13b8b27e16b2f92'
8-
curl -s -S -L -o '631c3ac5d8cc76468d617056d13b8b27e16b2f92.zip' 'https://api.github.com/repos/actions/upload-artifact/zipball/631c3ac5d8cc76468d617056d13b8b27e16b2f92'
5+
curl -s -S -L -o '3446296876d12d4e3a0f3145a3c87e67bf0a16b5.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/3446296876d12d4e3a0f3145a3c87e67bf0a16b5'
6+
curl -s -S -L -o '3446296876d12d4e3a0f3145a3c87e67bf0a16b5.zip' 'https://api.github.com/repos/actions/upload-artifact/zipball/3446296876d12d4e3a0f3145a3c87e67bf0a16b5'
7+
curl -s -S -L -o '3446296876d12d4e3a0f3145a3c87e67bf0a16b5.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/3446296876d12d4e3a0f3145a3c87e67bf0a16b5'
8+
curl -s -S -L -o '3446296876d12d4e3a0f3145a3c87e67bf0a16b5.zip' 'https://api.github.com/repos/actions/upload-artifact/zipball/3446296876d12d4e3a0f3145a3c87e67bf0a16b5'
99
curl -s -S -L -o '82c141cc518b40d92cc801eee768e7aafc9c2fa2.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/82c141cc518b40d92cc801eee768e7aafc9c2fa2'
1010
curl -s -S -L -o '82c141cc518b40d92cc801eee768e7aafc9c2fa2.zip' 'https://api.github.com/repos/actions/upload-artifact/zipball/82c141cc518b40d92cc801eee768e7aafc9c2fa2'
1111
curl -s -S -L -o '97b7dace6c8d860ce9708aba808be6a2ee4cbc3a.tar.gz' 'https://api.github.com/repos/actions/upload-artifact/tarball/97b7dace6c8d860ce9708aba808be6a2ee4cbc3a'

script/internal/generate-scripts.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,14 @@ for json_file in $script_dir/../../config/actions/*.json; do
4040
curl_download_commands+=("curl -s -S -L -o '$sha.zip' 'https://api.github.com/repos/$owner/$repo/zipball/$sha'")
4141
done
4242

43-
# Get an array of tag info. Each item contains "<tag> <tag_or_commit_sha> <commit_sha>"
43+
# Get an array of tag info. Each item contains "<tag> <commit_sha>"
4444
tag_info=()
45-
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' )
45+
IFS=$'\n' read -r -d '' -a tag_info < <( echo "$json" | jq --raw-output '.tags | to_entries | .[] | .key + " " + .value.commit' && printf '\0' )
4646

4747
for item in "${tag_info[@]}"; do
4848
split=( $(echo $item) )
4949
tag="${split[0]}"
5050
sha="${split[1]}"
51-
commit="${split[2]}"
5251

5352
# Append curl download command
5453
curl_download_commands+=("curl -s -S -L -o '$sha.tar.gz' 'https://api.github.com/repos/$owner/$repo/tarball/$sha'")

0 commit comments

Comments
 (0)