From 1e2ff6d69da55863ea0993faa2459549268751e7 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Thu, 30 Nov 2023 17:56:32 +0100 Subject: [PATCH] Actualiser .forgejo/workflows/ci.yaml --- .forgejo/workflows/ci.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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