Skip to content

Commit

Permalink
Update action to use 'github_token' for the token name
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Mikusa <[email protected]>
  • Loading branch information
Daniel Mikusa committed Apr 14, 2022
1 parent 1e42f88 commit dd24556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/draft-release/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func main() {
fmt.Println(" ", repoRelease)
} else {
var c *http.Client
if s, ok := inputs["token"]; ok {
if s, ok := inputs["github_token"]; ok {
c = oauth2.NewClient(context.Background(), oauth2.StaticTokenSource(&oauth2.Token{AccessToken: s}))
}
gh := github.NewClient(c)
Expand Down

0 comments on commit dd24556

Please sign in to comment.