diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index 44b99cb..93b74af 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -11,17 +11,20 @@ jobs: shell: bash run: | git clone ${{ gitea.server_url }}/${{ gitea.repository }} dns + echo "Cloned sucessfully from ${{ gitea.server_url }}/${{ gitea.repository }}" - name: Test files shell: bash run: | cd dns files=$(git diff-tree --no-commit-id --name-only -r main | grep "*.zone") + echo "Have to test $files" for file in $files do domain=$(echo $file | sed "s/.zone//g") - /usr/sbin/named-checkzone "$domain" "$file" || exit 2 && echo "Error on file $file" + /usr/sbin/named-checkzone "$domain" "$file" || echo "Error on file $file" && exit 2 done echo $(git diff-tree --no-commit-id --name-only -r main | grep "*.zone") > /var/cache/bind/.modified + echo "Tested sucessfully" sync: runs-on: linux_amd64