From 05763cb4abca6dcbafde9fec0a236057700408b2 Mon Sep 17 00:00:00 2001 From: Andromachi Rozaki Date: Wed, 10 Jul 2024 21:42:33 +0200 Subject: [PATCH] added second check for find comment --- .github/workflows/preview-env-deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview-env-deploy.yml b/.github/workflows/preview-env-deploy.yml index 782db03c03..a8392f69c9 100644 --- a/.github/workflows/preview-env-deploy.yml +++ b/.github/workflows/preview-env-deploy.yml @@ -73,7 +73,7 @@ jobs: - name: Find build status comment uses: peter-evans/find-comment@v3 - id: find-comment + id: find-build-comment with: issue-number: ${{ github.event.number }} body-includes: @@ -81,7 +81,7 @@ jobs: - name: Update comment with upload status uses: peter-evans/create-or-update-comment@v4 with: - comment-id: ${{ steps.find-comment.outputs.comment-id }} + comment-id: ${{ steps.find-build-comment.outputs.comment-id }} issue-number: ${{ github.event.number }} body: | :arrow_up: The preview environment build results for commit ${{ github.sha }} is being uploaded. This usually takes 3-4 minutes. @@ -107,7 +107,7 @@ jobs: env: BUCKET_NAME: ${{ steps.secrets.outputs.PREVIEW_ENV_BUCKET_NAME }} with: - comment-id: ${{ steps.find-comment.outputs.comment-id }} + comment-id: ${{ steps.find-build-comment.outputs.comment-id }} issue-number: ${{ github.event.number }} body: | 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)