Simplify workflow directory check to test for dirs instead of globbing files
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 7s
Build-Test-Publish / build (linux/arm64) (push) Successful in 12s

This commit is contained in:
j
2026-03-11 22:35:08 +13:00
parent cb4cb36ad8
commit 07869de989

2
gp
View File

@@ -544,7 +544,7 @@ wait_for_workflow() {
fi
# Skip if no workflow files exist in the repo
if ! ls .gitea/workflows/*.yml .gitea/workflows/*.yaml .github/workflows/*.yml .github/workflows/*.yaml 2>/dev/null | grep -q .; then
if [ ! -d ".gitea/workflows" ] && [ ! -d ".github/workflows" ]; then
return 0
fi