Simplify workflow directory check to test for dirs instead of globbing files
This commit is contained in:
2
gp
2
gp
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user