From 291c740c529d25066b4fe48307c0794e893253ce Mon Sep 17 00:00:00 2001 From: Catalan Lover Date: Sun, 17 May 2026 12:23:42 +0200 Subject: [PATCH] Fix Workflow gate logic error --- .github/workflows/workflow-gate.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow-gate.yml b/.github/workflows/workflow-gate.yml index 666c43b3..f91c7ab9 100644 --- a/.github/workflows/workflow-gate.yml +++ b/.github/workflows/workflow-gate.yml @@ -31,7 +31,7 @@ jobs: uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 with: script: | - const sha = context.payload.workflow_run.head_commit.id; + const sha = context.payload.workflow_run.head_sha; // Get all check runs for this commit const checks = await github.rest.checks.listForRef({ @@ -45,7 +45,7 @@ jobs: 'GHCR - Development Branches', 'Docker Hub - Release', 'Docker Hub - Latest', 'Docker Hub - Develop', 'GHCR - Release', 'Tests', 'GHCR - Latest', 'Contribution requirements' ]; - const relevantChecks = checks.data.filter(check => knownWorkflows.includes(check.name)); + const relevantChecks = checks.data.check_runs.filter(check => knownWorkflows.includes(check.name)); // Check if ANY workflow is still running or queued const incompleteChecks = relevantChecks.filter(check => check.status !== 'completed');