From 390da591b1e6949eef323f5f6d465bf82fbd7ad2 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Sat, 23 Aug 2025 17:01:10 -0700 Subject: [PATCH] fix: Add SHA handling for push events in showtime workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use github.sha for push events since they don't have pull_request context. This fixes the 'No SHA available' error when the workflow runs on push. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/showtime-trigger.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/showtime-trigger.yml b/.github/workflows/showtime-trigger.yml index f23be53cdd4..a4997b38ef3 100644 --- a/.github/workflows/showtime-trigger.yml +++ b/.github/workflows/showtime-trigger.yml @@ -112,15 +112,18 @@ jobs: id: sha if: steps.check.outputs.build_needed == 'true' run: | - # Simple SHA handling - use input or default to PR head + # SHA handling for different event types if [[ -n "${{ github.event.inputs.sha }}" ]]; then SHA="${{ github.event.inputs.sha }}" echo "Using override SHA: $SHA" elif [[ -n "${{ github.event.pull_request.head.sha }}" ]]; then SHA="${{ github.event.pull_request.head.sha }}" echo "Using PR head SHA: $SHA" + elif [[ "${{ github.event_name }}" == "push" ]]; then + SHA="${{ github.sha }}" + echo "Using push SHA: $SHA" else - echo "❌ No SHA available from PR head or inputs" + echo "❌ No SHA available from any source" exit 1 fi