Skip to content

Commit

Permalink
add github_sha to Config
Browse files Browse the repository at this point in the history
  • Loading branch information
iTrooz committed Dec 18, 2022
1 parent b7905cc commit 2e17c09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { statSync, readFileSync } from "fs";
export interface Config {
github_token: string;
github_ref: string;
github_sha: string;
github_repository: string;
// user provided
input_name?: string;
Expand Down Expand Up @@ -55,6 +56,7 @@ export const parseConfig = (env: Env): Config => {
return {
github_token: env.GITHUB_TOKEN || env.INPUT_TOKEN || "",
github_ref: env.GITHUB_REF || "",
github_sha: env.GITHUB_SHA || "",
github_repository: env.INPUT_REPOSITORY || env.GITHUB_REPOSITORY || "",
input_name: env.INPUT_NAME,
input_tag_name: env.INPUT_TAG_NAME?.trim(),
Expand Down

0 comments on commit 2e17c09

Please sign in to comment.