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

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

commit f9f64596e69b42f3b957596f208e70f62349dc4e
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Mon Jun 9 14:50:18 2025 +0200

    Use .head.repo.pushed_at in pr-comment workflow instead of .pushed_at. 
Thanks to Alexander Barabanov from Intel for his finding.
---
 .github/workflows/pr-comment.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml
index b72af9fc6fa..c2334f7e298 100644
--- a/.github/workflows/pr-comment.yml
+++ b/.github/workflows/pr-comment.yml
@@ -51,7 +51,7 @@ jobs:
         run: |
           pr="$(gh api /repos/${GH_REPO}/pulls/${PR_NUMBER})"
           head_sha="$(echo "$pr" | jq -r .head.sha)"
-          pushed_at="$(echo "$pr" | jq -r .pushed_at)"
+          pushed_at="$(echo "$pr" | jq -r .head.repo.pushed_at)"
           if [[ $(date -d "$pushed_at" +%s) -gt $(date -d "$COMMENT_AT" +%s) 
]]; then
               exit 1
           fi

Reply via email to