mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 18:44:19 +00:00
Fix custom token
This commit is contained in:
parent
fe9a9bd329
commit
7363371ffd
2 changed files with 3 additions and 4 deletions
|
@ -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"
|
||||||
|
|
|
@ -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) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue