You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2025/06/09 12:53:46 UTC
(camel) branch camel-4.10.x updated: Use .head.repo.pushed_at in pr-comment workflow instead of .pushed_at (#18325)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-4.10.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.10.x by this push:
new 38fd86767aa Use .head.repo.pushed_at in pr-comment workflow instead of .pushed_at (#18325)
38fd86767aa is described below
commit 38fd86767aa0aa26d453924095dc69c2bdb37a84
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jun 9 14:50:18 2025 +0200
Use .head.repo.pushed_at in pr-comment workflow instead of .pushed_at (#18325)
---
.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 3219f08c26c..3e7cc57003e 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