Use .head.repo.pushed_at in pr-comment workflow instead of .pushed_at
diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml
index b72af9f..c2334f7 100644
--- a/.github/workflows/pr-comment.yml
+++ b/.github/workflows/pr-comment.yml
@@ -51,7 +51,7 @@
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