File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,11 +75,11 @@ inputs:
7575 github-api-url :
7676 description : ' configure github API URL. Default `https://api.github.com`'
7777 required : false
78- default : ' '
78+ default : ${{ github.api_url }}
7979 github-graphql-url :
8080 description : ' configure github GraphQL URL. Default `https://api.github.com`'
8181 required : false
82- default : ' '
82+ default : ${{ github.graphql_url }}
8383 repo-url :
8484 description : ' configure github repository URL. Default `process.env.GITHUB_REPOSITORY`'
8585 required : false
Original file line number Diff line number Diff 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 ( / \/ g r a p h q l $ / , ' ') || GITHUB_GRAPHQL_URL ,
2222 token : core . getInput ( 'token' , { required : true } )
2323 }
2424}
You can’t perform that action at this time.
0 commit comments