mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-13 09:51:37 +02:00
feat: read github api/graphql url from action context (#532)
* feat: read github api/graphql url from action context * fix tests Co-authored-by: Jeff Ching <chingor@google.com>
This commit is contained in:
2
index.js
2
index.js
@@ -18,7 +18,7 @@ function getGitHubInput () {
|
||||
defaultBranch: core.getInput('default-branch') || undefined,
|
||||
repoUrl: core.getInput('repo-url') || process.env.GITHUB_REPOSITORY,
|
||||
apiUrl: core.getInput('github-api-url') || GITHUB_API_URL,
|
||||
graphqlUrl: core.getInput('github-graphql-url') || GITHUB_GRAPHQL_URL,
|
||||
graphqlUrl: (core.getInput('github-graphql-url') || '').replace(/\/graphql$/, '') || GITHUB_GRAPHQL_URL,
|
||||
token: core.getInput('token', { required: true })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user