Skip to content

Commit ec4031c

Browse files
committed
feat: Add Github confirmation comment upon starting to deploy
1 parent 1f119f1 commit ec4031c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/deploy-to-control-plane-review.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ jobs:
6060
echo "APP_NAME=qa-react-webpack-rails-tutorial-pr-${{ env.PR_NUMBER }}" >> $GITHUB_ENV
6161
echo "App Name: ${{ env.APP_NAME }}"
6262
63+
- name: Add GitHub Comment
64+
if: ${{ github.event_name == 'issue_comment' }}
65+
uses: actions/github-script@v4
66+
with:
67+
script: |
68+
github.rest.issues.createComment({
69+
issue_number: context.issue.number,
70+
owner: context.repo.owner,
71+
repo: context.repo.repo,
72+
body: "We started working on your review-app deployment. You can track progress in the "Actions" Tab [here](https://github.com/shakacode/react-webpack-rails-tutorial/actions/workflows/deploy-to-control-plane-review.yml) on Github."
73+
})
74+
6375
- uses: ./.github/actions/deploy-to-control-plane
6476
with:
6577
app_name: ${{ env.APP_NAME }}

0 commit comments

Comments
 (0)