File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed
Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,19 @@ DEPS_DIR="$BASE_DIR/deps"
1010# shellcheck disable=SC1091
1111. " $BASE_DIR /tools/dep_updaters/utils.sh"
1212
13- NEW_VERSION=" 1.15.1"
14- # NEW_VERSION="$("$NODE" --input-type=module <<'EOF'
15- # const res = await fetch('https://api.github.com/repos/ngtcp2/ngtcp2/releases',
16- # process.env.GITHUB_TOKEN && {
17- # headers: {
18- # "Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
19- # },
20- # });
21- # if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
22- # const releases = await res.json()
23- # const { tag_name } = releases.at(0);
24- # console.log(tag_name.replace('v', ''));
25- # EOF
26- # )"
13+ NEW_VERSION=" $( " $NODE " --input-type=module << 'EOF '
14+ const res = await fetch('https://api.github.com/repos/ngtcp2/ngtcp2/releases',
15+ process.env.GITHUB_TOKEN && {
16+ headers: {
17+ "Authorization": `Bearer ${process.env.GITHUB_TOKEN}`
18+ },
19+ });
20+ if (!res.ok) throw new Error(`FetchError: ${res.status} ${res.statusText}`, { cause: res });
21+ const releases = await res.json()
22+ const { tag_name } = releases.at(0);
23+ console.log(tag_name.replace('v', ''));
24+ EOF
25+ ) "
2726
2827NGTCP2_VERSION_H=" $DEPS_DIR /ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h"
2928
You can’t perform that action at this time.
0 commit comments