Fix custom token

This commit is contained in:
altus34 2022-03-04 18:40:41 -05:00
parent fe9a9bd329
commit 7363371ffd
2 changed files with 3 additions and 4 deletions

View file

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

View file

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