Skip to content

Commit

Permalink
feat: Add Github confirmation comment upon starting to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rameziophobia committed Aug 26, 2024
1 parent 1f119f1 commit ec4031c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy-to-control-plane-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit ec4031c

Please sign in to comment.