Skip to content

Commit

Permalink
try out new action
Browse files Browse the repository at this point in the history
  • Loading branch information
andromaqui committed Jul 24, 2024
1 parent 0c93266 commit 1142433
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/preview-env-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,12 @@ jobs:
secret/data/products/camunda-docs/ci/preview-environment PREVIEW_ENV_BUCKET_NAME;
secret/data/products/camunda-docs/ci/preview-environment PREVIEW_ENV_GCLOUD_SA_KEY;
- name: Upsert Deployment Result Summary
uses: mshick/add-pr-comment@v2
with:
message: |
dummy
refresh-message-position: true

- name: Add or Update Comment - Build Status
uses: mshick/add-pr-comment@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
find: |
Dummy
replace: |
message-id: mymessageid
message: |
:construction: The preview environment for the commit ${{ github.sha }} is being built. This usually takes 15-20 minutes. <!-- preview-env -->
- name: Install Dependencies
Expand Down Expand Up @@ -77,9 +69,8 @@ jobs:
uses: mshick/add-pr-comment@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
find: |
dummy
replace: |
message-id: mymessageid
message: |
:arrow_up: The preview environment build results for commit ${{ github.sha }} are being uploaded. This usually takes 3-4 minutes. <!-- preview-env -->
- name: Upload files to Google bucket
Expand All @@ -103,7 +94,6 @@ jobs:
BUCKET_NAME: ${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }}
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
find: |
<!-- preview-env -->
replace: |
message-id: mymessageid
message: |
The preview environment relating to the commit ${{ github.sha }} has successfully been deployed. You can access it at [https://${{ env.BUCKET_NAME }}/pr-${{ github.event.number }}/index.html](https://${{ env.BUCKET_NAME }}/pr-${{ github.event.number }}/index.html) <!-- preview-env -->

0 comments on commit 1142433

Please sign in to comment.