Skip to content

Commit d67ffe0

Browse files
authored
DX-2933 Update PR Comment Action (#143)
* DX-2933 Update PR Comment Action * add quotes
1 parent e63f8a7 commit d67ffe0

File tree

2 files changed

+11
-38
lines changed

2 files changed

+11
-38
lines changed

.github/actions/add_pr_comment/action.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/listener.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,14 @@ jobs:
4242
env:
4343
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
4444

45-
- uses: ./.github/actions/add_pr_comment
46-
with:
47-
username: ${{ secrets.DX_GITHUB_USERNAME }}
48-
token: ${{ secrets.DX_GITHUB_TOKEN }}
49-
repo-name: api-specs
50-
pr-number: ${{ github.event.client_payload.prNumber }}
51-
message: 'Python SDK built successfully\n\nSee the corresponding PR opened on the SDK repository (no action required):\nhttps://github.com/Bandwidth/api-docs/pull/${{ env.PR_NUMBER }}'
45+
# Comment on PR
46+
- name: Comment on PR
47+
uses: actions/github-script@v6
48+
with:
49+
script: |
50+
github.rest.issues.createComment({
51+
issue_number: ${{ github.event.client_payload.prNumber }},
52+
owner: 'Bandwidth',
53+
repo: 'api-specs',
54+
body: 'Python SDK built successfully\n\nSee the corresponding PR opened on the SDK repository (no action required):\nhttps://github.com/Bandwidth/api-docs/pull/${{ env.PR_NUMBER }}'
55+
})

0 commit comments

Comments
 (0)