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

nfilotto pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new c2fc4338ad3 component-test - Add log to set reference to branch
c2fc4338ad3 is described below

commit c2fc4338ad375c313a36832fad8cd15397ffa75d
Author: Nicolas Filotto <nfilo...@talend.com>
AuthorDate: Tue May 30 23:57:25 2023 +0200

    component-test - Add log to set reference to branch
---
 .github/workflows/pr-comment-main.yml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/pr-comment-main.yml 
b/.github/workflows/pr-comment-main.yml
index f7bd3629eda..ed7874fae8e 100644
--- a/.github/workflows/pr-comment-main.yml
+++ b/.github/workflows/pr-comment-main.yml
@@ -49,10 +49,15 @@ jobs:
                   pull_number: context.issue.number
             });
             console.log(pr)
-            core.exportVariable('pr_ref', pr.data.head.ref)
+            core.exportVariable('pr_ref', pr.data.ref)
+      - name: Dump GitHub context
+        env:
+          GITHUB_CONTEXT: ${{ toJson(github) }}
+        run: |
+          echo "$GITHUB_CONTEXT"
       - uses: actions/checkout@v3
         with:
-          ref: $pr_ref
+          ref: ${{ github.pr_ref }}
           repository: ${{ github.event.issue.pull_request.head.repo.full_name 
}}
       - id: install-packages
         uses: ./.github/actions/install-packages

Reply via email to