1 Commits

Author SHA1 Message Date
632e0b0d33 infra: actions: fix docker changes detector so it doesnt always build on force pushes
Some checks failed
Gentoo Utils / build (push) Has been cancelled
Gentoo Utils / test (push) Has been cancelled
Gentoo Utils / check-format (push) Has been cancelled
Gentoo Utils / docs (push) Has been cancelled
Gentoo Utils / build-oci-image (push) Has been cancelled
2025-12-12 18:05:44 -06:00

View File

@@ -28,8 +28,8 @@ jobs:
image_tag="$(echo "$image_tag" | sed -E 's/[^a-zA-Z0-9]/-/g')" image_tag="$(echo "$image_tag" | sed -E 's/[^a-zA-Z0-9]/-/g')"
# rebase breaks gitea.event.before, so check to make sure the hash provided exists # rebase breaks gitea.event.before, so check to make sure the hash provided exists
if ! git merge-base --is-ancestor $comparison_hash origin/$branch_name >/dev/null 2>&1; then if ! git merge-base --is-ancestor $comparison_hash $branch_name >/dev/null 2>&1; then
comparison_hash=$(git merge-base ${{ gitea.event.repository.default_branch }} $branch_name) comparison_hash=$(git merge-base origin/$default_branch_name $branch_name)
fi fi
if ! git diff $comparison_hash ${{ gitea.sha }} --no-patch --exit-code .docker; then if ! git diff $comparison_hash ${{ gitea.sha }} --no-patch --exit-code .docker; then