infra: add default branch name to outputs

This commit is contained in:
2025-12-07 14:51:19 -06:00
parent 44731beefa
commit 0bff75601c

View File

@@ -20,6 +20,7 @@ jobs:
- name: Check for changes before building
id: image-changes
run: |
echo "branch_name=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITEA_OUTPUT
if ! git diff ${{ gitea.event.before }} ${{ gitea.sha }} --no-patch --exit-code .docker; then
echo changes_detected=true >> $GITEA_OUTPUT
else