diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index ba23ef0..c1fecf7 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -14,10 +14,15 @@ jobs: echo "Cloned sucessfully from ${{ gitea.server_url }}/${{ gitea.repository }}" cd dns echo "We're in DNS" - echo "$(git diff-tree --no-commit-id --name-only -r main | grep '*.zone')" - files=$(git diff-tree --no-commit-id --name-only -r main | grep "*.zone") + files=$(git diff-tree --no-commit-id --name-only -r main | grep '*.zone') + + if [ -z $files]; then + exit 0 + fi + echo "Have to test $files" echo "" > /var/cache/bind/.modified + for file in $files do domain=$(echo $file | sed "s/.zone//g")