Skip to content

Commit 28b1eb5

Browse files
committed
feat: move confirmation comment to first thing in the review app workflow
1 parent f883d84 commit 28b1eb5

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/deploy-to-control-plane-review.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ jobs:
3535
- name: Check out the repo
3636
uses: actions/checkout@v2
3737

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+
3850
- name: Get PR number
3951
run: |
4052
echo "GITHUB_REPOSITORY: \"$GITHUB_REPOSITORY\""
@@ -60,18 +72,6 @@ jobs:
6072
echo "APP_NAME=qa-react-webpack-rails-tutorial-pr-${{ env.PR_NUMBER }}" >> $GITHUB_ENV
6173
echo "App Name: ${{ env.APP_NAME }}"
6274
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-
7575
- uses: ./.github/actions/deploy-to-control-plane
7676
with:
7777
app_name: ${{ env.APP_NAME }}

0 commit comments

Comments
 (0)