From fea7156fb92e1c3ffe15c17b0708d87c63801175 Mon Sep 17 00:00:00 2001 From: Trenton Holmes <797416+stumpylog@users.noreply.github.com> Date: Tue, 13 Jan 2026 20:58:15 -0800 Subject: [PATCH] Brings back the building of feature branches, but only once a PR is open --- .github/workflows/ci-docker.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-docker.yml b/.github/workflows/ci-docker.yml index e320be4a4..d64677585 100644 --- a/.github/workflows/ci-docker.yml +++ b/.github/workflows/ci-docker.yml @@ -60,8 +60,20 @@ jobs: REF_NAME: ${{ steps.ref.outputs.name }} run: | # should-push: Should we push to GHCR? - # True for: pushes (tags/dev/beta). False for PRs. - should_push=${{ github.event_name == 'push' }} + # True for: + # 1. Pushes (tags/dev/beta) - filtered via the workflow triggers + # 2. Internal PRs where the branch name starts with 'feature-' - filtered here when a PR is synced + + should_push="false" + + if [[ "${{ github.event_name }}" == "push" ]]; then + should_push="true" + elif [[ "${{ github.event_name }}" == "pull_request" && "${{ github.event.pull_request.head.repo.full_name }}" == "${{ github.repository }}" ]]; then + if [[ "${REF_NAME}" == feature-* ]]; then + should_push="true" + fi + fi + echo "should-push=${should_push}" echo "should-push=${should_push}" >> $GITHUB_OUTPUT