diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 04ad9bc..3533cc9 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -57,5 +57,7 @@ jobs: with: message: | **It works!** + proxy-url: https://add-pr-comment-bot-73luvmwygq-uc.a.run.app + proxy-secret: ${{ secrets.PROXY_SECRET }} repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token-user-login: "github-actions[bot]" diff --git a/README.md b/README.md index 448b4f1..60adea2 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ jobs: with: message: | **Howdie!** - proxy-url: https://add-pr-comment-proxy-94idvmwyie-uc.a.run.app/ + proxy-url: https://add-pr-comment-proxy-94idvmwyie-uc.a.run.app proxy-secret: foobar repo-token: ${{ secrets.GITHUB_TOKEN }} ``` diff --git a/add-pr-comment.ts b/add-pr-comment.ts index 16fe1ad..dcc388d 100644 --- a/add-pr-comment.ts +++ b/add-pr-comment.ts @@ -95,7 +95,7 @@ const getInputs = (): AddPrCommentInputs => { allowRepeats: Boolean(core.getInput('allow-repeats') === 'true'), message: core.getInput('message'), proxySecret: core.getInput('proxy-secret'), - proxyUrl: core.getInput('proxy-url'), + proxyUrl: core.getInput('proxy-url').replace(/\/$/, ''), repoToken: core.getInput('repo-token') || process.env['GITHUB_TOKEN'], repoTokenUserLogin: core.getInput('repo-token-user-login'), }