This repository has been archived by the owner on Aug 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Review App URL available for other steps in workflow
- Loading branch information
1 parent
72660e0
commit 3d8fa38
Showing
4 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,8 @@ A Github Action that tests the deployment status of a Heroku Review App. | |
|
||
steps: | ||
- name: Run review-app test | ||
uses: niteoweb/[email protected] | ||
id: review_app_test # `id` value is used to refer the outputs from the corresponding action | ||
uses: niteoweb/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
@@ -46,6 +47,11 @@ A Github Action that tests the deployment status of a Heroku Review App. | |
|
||
# Max time to be spent retrying for the response check, default is 120 | ||
publish_timeout: 120 | ||
|
||
# `steps.review_app_test.outputs.review_app_url` must be used in workflow to fetch the Review App URL | ||
- name: Check review_app_url | ||
run: | | ||
echo "Outputs - ${{ steps.review_app_test.outputs.review_app_url }}" | ||
``` | ||
> Note: Work flow should include `pull_request` event. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters