fix: script error

This commit is contained in:
GyDi 2022-01-19 00:42:37 +08:00
parent 46a8dec655
commit 82ba604b99
No known key found for this signature in database
GPG Key ID: 1C95E0D3467B3084

View File

@ -34,7 +34,11 @@ async function resolveRelease() {
const github = getOctokit(process.env.GITHUB_TOKEN);
const release = await github.rest.repos.getReleaseByTag("update");
const release = await github.rest.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: "update",
});
const { data: assets } = await github.rest.repos.listReleaseAssets({
owner: context.repo.owner,
repo: context.repo.repo,