Skip to content

Commit e769147

Browse files
authored
ci: add bct.yml for testing (#1059)
testing
1 parent 7e33560 commit e769147

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/bct.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: BCT trigger
2+
on:
3+
issue_comment:
4+
types: [created, edited]
5+
jobs:
6+
pr-comment:
7+
runs-on: ubuntu-latest
8+
if: github.event.issue.pull_request && contains(github.event.comment.body, 'Deploy Preview for') && contains(github.event.comment.body, 'ready!')
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Extract repository name
12+
id: repo_name
13+
run: echo "::set-output name=repo::$(echo ${{ github.repository }} | cut -d'/' -f2)"
14+
- run: echo "https://deploy-preview-${{ github.event.issue.number }}--${{ steps.repo_name.outputs.repo }}.netlify.app"
15+
- name: Dump GitHub context
16+
env:
17+
GITHUB_CONTEXT: ${{ toJson(github) }}
18+
run: echo "$GITHUB_CONTEXT"
19+
- name: Dump job context
20+
env:
21+
JOB_CONTEXT: ${{ toJson(job) }}
22+
run: echo "$JOB_CONTEXT"

.github/workflows/pr-comment-bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
steps:
99
- uses: actions/checkout@v3
1010
# see list of commands: https://github.com/sendbird/release-automation-action#commands
11-
- uses: sendbird/release-automation-action@0.0.3
11+
- uses: sendbird/release-automation-action@latest
1212
with:
1313
gh_token: ${{ secrets.GITHUB_TOKEN }}
1414
circleci_token: ${{ secrets.CIRCLECI_API_TOKEN }}

0 commit comments

Comments
 (0)