Skip to content

Commit f57c785

Browse files
ci: try to replace trailing /graphql
1 parent e45eaff commit f57c785

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function getGitHubInput () {
1818
defaultBranch: core.getInput('default-branch') || undefined,
1919
repoUrl: core.getInput('repo-url') || process.env.GITHUB_REPOSITORY,
2020
apiUrl: core.getInput('github-api-url') || GITHUB_API_URL,
21-
graphqlUrl: core.getInput('github-graphql-url') || GITHUB_GRAPHQL_URL,
21+
graphqlUrl: core.getInput('github-graphql-url').replace(/\/graphql$/, '') || GITHUB_GRAPHQL_URL,
2222
token: core.getInput('token', { required: true })
2323
}
2424
}

0 commit comments

Comments
 (0)