This commit is contained in:
David Avenante 2022-03-04 23:41:03 +00:00 committed by GitHub
commit 23b38bea47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -46,8 +46,7 @@ inputs:
append_body: append_body:
description: "Append existed body instead of overrites. Default is false." description: "Append existed body instead of overrites. Default is false."
required: false required: false
env:
"GITHUB_TOKEN": "As provided by Github Actions"
outputs: outputs:
url: url:
description: "URL to the Release HTML Page" description: "URL to the Release HTML Page"

View file

@ -6,9 +6,9 @@ import {
uploadUrl uploadUrl
} from "./util"; } from "./util";
import { release, upload, GitHubReleaser } from "./github"; import { release, upload, GitHubReleaser } from "./github";
import * as core from "@actions/core";
import { getOctokit } from "@actions/github"; import { getOctokit } from "@actions/github";
import { setFailed, setOutput } from "@actions/core"; import { setFailed, setOutput } from "@actions/core";
import { GitHub, getOctokitOptions } from "@actions/github/lib/utils";
import { env } from "process"; import { env } from "process";
@ -37,7 +37,7 @@ async function run() {
// require("@octokit/plugin-retry") // require("@octokit/plugin-retry")
// ); // );
const gh = getOctokit(config.github_token, { const gh = getOctokit(core.getInput('token'), {
//new oktokit( //new oktokit(
throttle: { throttle: {
onRateLimit: (retryAfter, options) => { onRateLimit: (retryAfter, options) => {