diff --git a/.github/workflows/deploy-to-control-plane-review.yml b/.github/workflows/deploy-to-control-plane-review.yml index ba7d5dea..3f871803 100644 --- a/.github/workflows/deploy-to-control-plane-review.yml +++ b/.github/workflows/deploy-to-control-plane-review.yml @@ -60,6 +60,18 @@ jobs: echo "APP_NAME=qa-react-webpack-rails-tutorial-pr-${{ env.PR_NUMBER }}" >> $GITHUB_ENV echo "App Name: ${{ env.APP_NAME }}" + - name: Add GitHub Comment + if: ${{ github.event_name == 'issue_comment' }} + uses: actions/github-script@v4 + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + 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." + }) + - uses: ./.github/actions/deploy-to-control-plane with: app_name: ${{ env.APP_NAME }}