mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 10:44:19 +00:00
backwards compat for GITHUB_TOKEN from env (#133)
* backwards compat for GITHUB_TOKEN from env * update changelog
This commit is contained in:
parent
d2a05f5e5a
commit
8779b820d9
4 changed files with 54 additions and 5 deletions
|
@ -1,4 +1,3 @@
|
|||
import { getInput } from "@actions/core";
|
||||
import * as glob from "glob";
|
||||
import { lstatSync, readFileSync } from "fs";
|
||||
|
||||
|
@ -42,7 +41,7 @@ export const parseInputFiles = (files: string): string[] => {
|
|||
|
||||
export const parseConfig = (env: Env): Config => {
|
||||
return {
|
||||
github_token: getInput("token") || env.GITHUB_TOKEN || "",
|
||||
github_token: env.GITHUB_TOKEN || env.INPUT_TOKEN || "",
|
||||
github_ref: env.GITHUB_REF || "",
|
||||
github_repository: env.INPUT_REPOSITORY || env.GITHUB_REPOSITORY || "",
|
||||
input_name: env.INPUT_NAME,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue