From 1d4e02251213fbecd8085fdc8cc59175e3ff52bd Mon Sep 17 00:00:00 2001 From: penguin Date: Mon, 8 Dec 2025 19:49:40 -0600 Subject: [PATCH] infra: image: fixes c35db0f --- .gitea/workflows/gentoo-utils.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/gentoo-utils.yml b/.gitea/workflows/gentoo-utils.yml index dd74570..d75e875 100644 --- a/.gitea/workflows/gentoo-utils.yml +++ b/.gitea/workflows/gentoo-utils.yml @@ -15,12 +15,13 @@ jobs: - name: Check for changes before building id: image-changes run: | - echo "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITEA_OUTPUT + branch_name="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" + echo "branch_name=$branch_name" >> $GITEA_OUTPUT - if [[ "${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" == "${{ gitea.event.repository.default_branch }}" ]]; then - echo "image_tag=latest" + if [[ "$branch_name" == "${{ gitea.event.repository.default_branch }}" ]]; then + echo "image_tag=latest" >> $GITEA_OUTPUT else - echo "image_tag=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" + echo "image_tag=$branch_name" >> $GITEA_OUTPUT fi if ! git diff ${{ gitea.event.before }} ${{ gitea.sha }} --no-patch --exit-code .docker; then