mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-13 06:27:26 +00:00
runtime: upgrade to use node v16
Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
parent
b049ab51f4
commit
31d1d0d13f
5 changed files with 11059 additions and 1667 deletions
|
|
@ -78,5 +78,5 @@ branding:
|
||||||
color: 'red'
|
color: 'red'
|
||||||
icon: 'umbrella'
|
icon: 'umbrella'
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node16'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
|
|
|
||||||
12714
dist/index.js
vendored
12714
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -24,12 +24,12 @@ const verify = async (filename: string, platform: string, version: string) => {
|
||||||
|
|
||||||
// Get SHASUM and SHASUM signature files
|
// Get SHASUM and SHASUM signature files
|
||||||
console.log(`${getBaseUrl(platform, version)}.SHA256SUM`);
|
console.log(`${getBaseUrl(platform, version)}.SHA256SUM`);
|
||||||
const shasumRes = await fetch(
|
const shasumRes = await fetch.default(
|
||||||
`${getBaseUrl(platform, version)}.SHA256SUM`,
|
`${getBaseUrl(platform, version)}.SHA256SUM`,
|
||||||
);
|
);
|
||||||
const shasum = await shasumRes.text();
|
const shasum = await shasumRes.text();
|
||||||
|
|
||||||
const shaSigRes = await fetch(
|
const shaSigRes = await fetch.default(
|
||||||
`${getBaseUrl(platform, version)}.SHA256SUM.sig`,
|
`${getBaseUrl(platform, version)}.SHA256SUM.sig`,
|
||||||
);
|
);
|
||||||
const shaSig = await shaSigRes.text();
|
const shaSig = await shaSigRes.text();
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ const versionInfo = async (platform: string, version?: string) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const metadataRes = await fetch( `https://uploader.codecov.io/${platform}/latest`, {
|
const metadataRes = await fetch.default( `https://uploader.codecov.io/${platform}/latest`, {
|
||||||
headers: {'Accept': 'application/json'},
|
headers: {'Accept': 'application/json'},
|
||||||
});
|
});
|
||||||
const metadata = await metadataRes.json();
|
const metadata = await metadataRes.json();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue