feat: change github context parsing
This commit is contained in:
parent
7d728dcbc2
commit
6a3a41374e
3 changed files with 44 additions and 60 deletions
|
@ -8,8 +8,9 @@ import (
|
|||
|
||||
func (a *Action) Client() *Client {
|
||||
c := &Client{Client: &http.Client{}}
|
||||
c.base = a.env("GITHUB_API_URL")
|
||||
c.token = fmt.Sprintf("Bearer %s", a.env("GITHUB_TOKEN"))
|
||||
context := a.Context()
|
||||
c.base = context.APIURL
|
||||
c.token = fmt.Sprintf("Bearer %s", context.Token)
|
||||
return c
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue