File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ test('input', () => {
10
10
11
11
const inp = getInputs ( )
12
12
13
- expect ( inp . GithubToken ) . toMatch ( '' )
13
+ expect ( inp . Token ) . toMatch ( '' )
14
14
expect ( inp . GistID ) . toMatch ( 'test_gist_id' )
15
15
expect ( inp . GistFileName ) . toMatch ( 'test_gist_file_name' )
16
16
expect ( inp . FilePath ) . toMatch ( 'test_file_path' )
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ branding:
5
5
icon : ' upload-cloud'
6
6
color : ' blue'
7
7
inputs :
8
- github_token :
8
+ token :
9
9
required : true
10
- description : ' Set a generated GITHUB_TOKEN for updating gist.'
10
+ description : ' Set a generated TOKEN for updating gist.'
11
11
gist_id :
12
12
required : true
13
13
description : ' Set id of the gist to be updated.'
Original file line number Diff line number Diff line change 1
1
import * as core from '@actions/core'
2
2
3
3
export interface Inputs {
4
- readonly GithubToken : string
4
+ readonly Token : string
5
5
readonly GistID : string
6
6
readonly GistFileName ?: string
7
7
readonly FilePath : string
@@ -17,7 +17,7 @@ export const showInputs = (inp: Inputs): void => {
17
17
18
18
export const getInputs = ( ) : Inputs => {
19
19
const inp : Inputs = {
20
- GithubToken : core . getInput ( 'github_token ' ) ,
20
+ Token : core . getInput ( 'token ' ) ,
21
21
GistID : core . getInput ( 'gist_id' ) ,
22
22
GistFileName : core . getInput ( 'gist_file_name' ) ,
23
23
FilePath : core . getInput ( 'file_path' )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export const run = async (): Promise<void> => {
16
16
core . endGroup ( )
17
17
18
18
core . startGroup ( 'Deploy to gist' )
19
- const octokit = github . getOctokit ( inp . GithubToken )
19
+ const octokit = github . getOctokit ( inp . Token )
20
20
const fileName = inp . GistFileName ? inp . GistFileName : path . basename ( filePath )
21
21
octokit . gists . update ( {
22
22
gist_id : inp . GistID ,
You can’t perform that action at this time.
0 commit comments