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