Actualiser .forgejo/workflows/ci.yaml
/ deploiement (push) Has been skipped Details
/ sync (push) Failing after 1s Details

This commit is contained in:
Adrien Bourmault 2023-11-30 18:48:57 +01:00
parent 5c161ea6c5
commit 6a21f82834
1 changed files with 7 additions and 2 deletions

View File

@ -14,10 +14,15 @@ jobs:
echo "Cloned sucessfully from ${{ gitea.server_url }}/${{ gitea.repository }}" echo "Cloned sucessfully from ${{ gitea.server_url }}/${{ gitea.repository }}"
cd dns cd dns
echo "We're in 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 "Have to test $files"
echo "" > /var/cache/bind/.modified echo "" > /var/cache/bind/.modified
for file in $files for file in $files
do do
domain=$(echo $file | sed "s/.zone//g") domain=$(echo $file | sed "s/.zone//g")