|
35 | 35 | - name: Check out the repo
|
36 | 36 | uses: actions/checkout@v2
|
37 | 37 |
|
| 38 | + - name: Add GitHub Comment |
| 39 | + if: ${{ github.event_name == 'issue_comment' }} |
| 40 | + uses: actions/github-script@v4 |
| 41 | + with: |
| 42 | + script: | |
| 43 | + github.rest.issues.createComment({ |
| 44 | + issue_number: context.issue.number, |
| 45 | + owner: context.repo.owner, |
| 46 | + repo: context.repo.repo, |
| 47 | + 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." |
| 48 | + }) |
| 49 | +
|
38 | 50 | - name: Get PR number
|
39 | 51 | run: |
|
40 | 52 | echo "GITHUB_REPOSITORY: \"$GITHUB_REPOSITORY\""
|
|
60 | 72 | echo "APP_NAME=qa-react-webpack-rails-tutorial-pr-${{ env.PR_NUMBER }}" >> $GITHUB_ENV
|
61 | 73 | echo "App Name: ${{ env.APP_NAME }}"
|
62 | 74 |
|
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 |
| -
|
75 | 75 | - uses: ./.github/actions/deploy-to-control-plane
|
76 | 76 | with:
|
77 | 77 | app_name: ${{ env.APP_NAME }}
|
|
0 commit comments