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

imbajin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hugegraph-computer.git


The following commit(s) were added to refs/heads/master by this push:
     new a6b2fb28 fix(ci): use GET for rerun freshness check (#354)
a6b2fb28 is described below

commit a6b2fb289e14596987f99e4029a569a5e37a38b8
Author: lokidundun <[email protected]>
AuthorDate: Wed Jul 15 22:02:29 2026 +0800

    fix(ci): use GET for rerun freshness check (#354)
    
    * fix(ci): use GET for rerun freshness check
    
    * fix(ci): handle rerun freshness check failures
---
 .github/workflows/rerun-ci.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/rerun-ci.yml b/.github/workflows/rerun-ci.yml
index 1d893831..1def66ac 100644
--- a/.github/workflows/rerun-ci.yml
+++ b/.github/workflows/rerun-ci.yml
@@ -94,7 +94,9 @@ jobs:
             action="skip"
             reason="missing head repository metadata"
           else
-            latest_head_sha="$(gh api "repos/$HEAD_REPOSITORY/commits" -f 
sha="$HEAD_BRANCH" -F per_page=1 --jq '.[0].sha' 2>/dev/null || true)"
+            if ! latest_head_sha="$(gh api --method GET 
"repos/$HEAD_REPOSITORY/commits" -f sha="$HEAD_BRANCH" -F per_page=1 --jq 
'.[0].sha')"; then
+              latest_head_sha=""
+            fi
 
             if [[ -z "$latest_head_sha" || "$latest_head_sha" == "null" ]]; 
then
               action="skip"

Reply via email to