From 92549ba9b28cd86e026819a3a30adc2493b539b7 Mon Sep 17 00:00:00 2001 From: Michael Shick Date: Mon, 6 Jul 2020 21:56:15 -0400 Subject: [PATCH] debug: test dogfood --- .github/workflows/integration.yml | 2 ++ README.md | 2 +- add-pr-comment.ts | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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'), }