This is an automated email from the ASF dual-hosted git repository.

ricardozanini pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-kogito-docs.git


The following commit(s) were added to refs/heads/main by this push:
     new 42c2e3106 Add PR id to publish workflows (#564)
42c2e3106 is described below

commit 42c2e3106b43a9aa815cb6a1cd951720c4609255
Author: Ricardo Zanini <[email protected]>
AuthorDate: Thu Mar 7 12:54:36 2024 -0300

    Add PR id to publish workflows (#564)
    
    Signed-off-by: Ricardo Zanini <[email protected]>
---
 .github/workflows/pr-preview-publish.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/pr-preview-publish.yml 
b/.github/workflows/pr-preview-publish.yml
index cb4602fb1..45dc4b168 100644
--- a/.github/workflows/pr-preview-publish.yml
+++ b/.github/workflows/pr-preview-publish.yml
@@ -41,7 +41,7 @@ jobs:
 
       - name: Publish to Surge for preview
         id: deploy
-        run: npx surge ./build/site --domain 
https://sonataflow-docs-preview-pr-${{ github.event.number }}.surge.sh --token 
${{ secrets.SURGE_LOCAL_TOKEN }}
+        run: npx surge ./build/site --domain 
https://sonataflow-docs-preview-pr-${{ 
github.event.workflow_run.pull_requests[0].number }}.surge.sh --token ${{ 
secrets.SURGE_LOCAL_TOKEN }}
 
       - name: Update PR status comment on success
         if: success()
@@ -49,10 +49,10 @@ jobs:
         with:
           token: ${{ secrets.GITHUB_TOKEN }}
           body: |
-            🎊 PR Preview ${{ github.sha }} has been successfully built and 
deployed. See the documentation preview: https://sonataflow-docs-preview-pr-${{ 
github.event.number }}.surge.sh
+            🎊 PR Preview ${{ github.sha }} has been successfully built and 
deployed. See the documentation preview: https://sonataflow-docs-preview-pr-${{ 
github.event.workflow_run.pull_requests[0].number }}.surge.sh
             <!-- Sticky Pull Request Comment -->
           body-include: "<!-- Sticky Pull Request Comment -->"
-          number: ${{ github.event.number }}
+          number: ${{ github.event.workflow_run.pull_requests[0].number }}
           emojis: "heart"
 
       - name: Update PR status comment on failure
@@ -65,5 +65,5 @@ jobs:
             <img width="300" 
src="https://user-images.githubusercontent.com/507615/90250824-4e066700-de6f-11ea-8230-600ecc3d6a6b.png";>
             <!-- Sticky Pull Request Comment -->
           body-include: "<!-- Sticky Pull Request Comment -->"
-          number: ${{ github.event.number }}
+          number: ${{ github.event.workflow_run.pull_requests[0].number }}
           emojis: "confused"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to