Skip to content

Commit

Permalink
fix: test finish comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lakkeger committed Jun 12, 2024
1 parent 9c8bce5 commit 1a1c752
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v4

- name: Deploy Preview
uses: LocalStack/setup-localstack@v0.2.0
uses: LocalStack/setup-localstack@fix_finish_comment
env:
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
with:
Expand All @@ -26,20 +26,20 @@ jobs:
# Multi line commands are folding for some reason, so we enforce new lines
# For more predictable usage, use script files
preview-cmd: |
npm install -g aws-cdk-local aws-cdk;
make build;
make bootstrap;
make deploy;
make prepare-frontend-local;
make build-frontend;
make bootstrap-frontend;
make deploy-frontend;
distributionId=$(awslocal cloudfront list-distributions | jq -r '.DistributionList.Items[0].Id');
echo \"PREVIEW_URL=$AWS_ENDPOINT_URL/cloudfront/$distributionId/\" >> $GITHUB_ENV;
npm install -g aws-cdk-local aws-cdk
make build
make bootstrap
make deploy
make prepare-frontend-local
make build-frontend
make bootstrap-frontend
make deploy-frontend
distributionId=$(awslocal cloudfront list-distributions | jq -r '.DistributionList.Items[0].Id')
echo "PREVIEW_URL=$AWS_ENDPOINT_URL/cloudfront/$distributionId/" >> $GITHUB_ENV
- name: Finalize PR comment
uses: LocalStack/setup-localstack/finish@v0.2.0
uses: LocalStack/setup-localstack/finish@fix_finish_comment
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
include-preview: true
Expand Down

0 comments on commit 1a1c752

Please sign in to comment.