Skip to content

Commit 7b6046b

Browse files
authored
DX-2454 Fix PR Comment Action (#76)
* DX-2454 Fix PR Comment Action * Target v1.0.0 of `generate-sdk-action` * Remove workflow dispatch trigger
1 parent 9b2770e commit 7b6046b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/listener.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ name: Listener
44
on:
55
repository_dispatch:
66
types: [Build]
7-
workflow_dispatch:
8-
inputs:
9-
branch:
10-
description: 'Branch Name'
11-
required: true
12-
default: 'build-sdk-workflow-test'
137

148
jobs:
159
build:
@@ -19,7 +13,7 @@ jobs:
1913
- uses: actions/checkout@v2
2014

2115
- name: Build SDK and Open PR
22-
uses: Bandwidth/generate-sdk-action@DX-2454
16+
uses: Bandwidth/generate-sdk-action@v1.0.0
2317
with:
2418
branch-name: ${{ github.event.client_payload.branchName }}
2519
username: ${{ secrets.DX_GITHUB_USERNAME }}
@@ -44,7 +38,7 @@ jobs:
4438

4539
- name: Output PR Number
4640
id: output-pr-number
47-
run: echo "::set-output name=pr-number::$(hub pr list -h ${{ inputs.branch-name }} -f %I)"
41+
run: echo "PR_NUMBER=$(hub pr list -h ${{ inputs.branch-name }} -f %I)" >> $GITHUB_ENV
4842
env:
4943
GITHUB_TOKEN: ${{ secrets.DX_GITHUB_TOKEN }}
5044

@@ -54,4 +48,4 @@ jobs:
5448
token: ${{ secrets.DX_GITHUB_TOKEN }}
5549
repo-name: api-specs
5650
pr-number: ${{ github.event.client_payload.prNumber }}
57-
message: 'Python SDK built successfully\n\nSee the corresponding PR opened on the docsite SDK (no action required):\nhttps://github.com/Bandwidth/api-docs/pull/${{ steps.output-pr-number.outputs.pr-number }}'
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 }}'

0 commit comments

Comments
 (0)