@@ -11,10 +11,10 @@ cleanup() {
|
11 | 11 | |
12 | 12 | download() { |
13 | 13 | LATEST_TAG_NAME="$("$NODE" --input-type=module <<'EOF' |
14 | | -const res = await fetch('https://api.github.com/repos/quictls/openssl/git/matching-refs/tags/openssl-3.0'); |
| 14 | +const res = await fetch('https://api.github.com/repos/openssl/openssl/git/matching-refs/tags/openssl-3.0'); |
15 | 15 | if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res }); |
16 | 16 | const releases = await res.json() |
17 | | -const latest = releases.findLast(({ ref }) => ref.includes('quic')); |
| 17 | +const latest = releases.at(-1); |
18 | 18 | if(!latest) throw new Error(`Could not find latest release`); |
19 | 19 | console.log(latest.ref.replace('refs/tags/','')); |
20 | 20 | EOF |
@@ -39,14 +39,14 @@ EOF
|
39 | 39 | |
40 | 40 | OPENSSL_TARBALL="openssl.tar.gz" |
41 | 41 | |
42 | | - curl -sL -o "$OPENSSL_TARBALL" "https://api.github.com/repos/quictls/openssl/tarball/$LATEST_TAG_NAME" |
| 42 | + curl -sL -o "$OPENSSL_TARBALL" "https://api.github.com/repos/openssl/openssl/tarball/$LATEST_TAG_NAME" |
43 | 43 | |
44 | 44 | log_and_verify_sha256sum "openssl" "$OPENSSL_TARBALL" |
45 | 45 | |
46 | 46 | gzip -dc "$OPENSSL_TARBALL" | tar xf - |
47 | 47 | |
48 | 48 | rm "$OPENSSL_TARBALL" |
49 | | - mv quictls-openssl-* openssl |
| 49 | + mv openssl-openssl-* openssl |
50 | 50 | echo "Replacing existing OpenSSL..." |
51 | 51 | rm -rf "$DEPS_DIR/openssl/openssl" |
52 | 52 | mv "$WORKSPACE/openssl" "$DEPS_DIR/openssl/" |
@@ -56,7 +56,7 @@ EOF
|
56 | 56 | echo "Please git add openssl, and commit the new version:" |
57 | 57 | echo "" |
58 | 58 | echo "$ git add -A deps/openssl/openssl" |
59 | | -echo "$ git commit -m \"deps: upgrade openssl sources to quictls/openssl-$NEW_VERSION\"" |
| 59 | +echo "$ git commit -m \"deps: upgrade openssl sources to openssl/openssl-$NEW_VERSION\"" |
60 | 60 | echo "" |
61 | 61 | # The last line of the script should always print the new version, |
62 | 62 | # as we need to add it to $GITHUB_ENV variable. |
|