From ec4031cca3a45650cf39ab7a582d7d7679883303 Mon Sep 17 00:00:00 2001 From: Ramez Weissa Date: Mon, 26 Aug 2024 11:20:40 +0300 Subject: [PATCH] feat: Add Github confirmation comment upon starting to deploy --- .github/workflows/deploy-to-control-plane-review.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 }}