Skip to content

Commit 8bb2ca6

Browse files
committed
try out new preview-url parameter of setup-localstack finish action
1 parent c0bb19b commit 8bb2ca6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/preview.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ jobs:
2929
make bootstrap-frontend
3030
make deploy-frontend
3131
distributionId=$(awslocal cloudfront list-distributions | jq -r '.DistributionList.Items[0].Id')
32-
echo "Open URL: $AWS_ENDPOINT_URL/cloudfront/$AWS_DEFAULT_REGION/$distributionId/"
32+
echo "PREVIEW_URL=$AWS_ENDPOINT_URL/cloudfront/$AWS_DEFAULT_REGION/$distributionId/" >> $GITHUB_ENV
3333
3434
- name: Finalize PR comment
35-
uses: LocalStack/setup-localstack/finish@main
35+
uses: LocalStack/setup-localstack/finish@pass-url-to-finish-step
3636
with:
3737
github-token: ${{ secrets.GITHUB_TOKEN }}
3838
include-preview: true
39+
preview-url: ${{ env.PREVIEW_URL }}

0 commit comments

Comments
 (0)