Skip to content

Commit f109fee

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

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
@@ -58,6 +58,18 @@ jobs:
5858
echo "APP_NAME=qa-react-webpack-rails-tutorial-pr-${{ env.PR_NUMBER }}" >> $GITHUB_ENV
5959
echo "App Name: ${{ env.APP_NAME }}"
6060
61+
- name: Add GitHub Comment
62+
if: ${{ github.event_name == 'issue_comment' }}
63+
uses: actions/github-script@v4
64+
with:
65+
script: |
66+
github.rest.issues.createComment({
67+
issue_number: context.issue.number,
68+
owner: context.repo.owner,
69+
repo: context.repo.repo,
70+
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."
71+
})
72+
6173
- uses: ./.github/actions/deploy-to-control-plane
6274
with:
6375
app_name: ${{ env.APP_NAME }}

0 commit comments

Comments
 (0)