.forgejo/workflows/ci.yaml: WIP
/ deploy_script (push) Successful in 2s Details

This commit is contained in:
Adrien Bourmault 2024-08-20 17:42:37 +02:00
parent 634f0ce693
commit 5e311b0abf
Signed by: neox
GPG Key ID: 57BC26A3687116F6
1 changed files with 1 additions and 1 deletions

View File

@ -15,12 +15,12 @@ jobs:
git clone ${{ gitea.server_url }}/${{ gitea.repository }} dns git clone ${{ gitea.server_url }}/${{ gitea.repository }} dns
cd dns cd dns
git diff HEAD^ HEAD > zone_diff.txt git diff HEAD^ HEAD > zone_diff.txt
echo $(cat zone_diff.txt)
while IFS= read -r line; do while IFS= read -r line; do
case "$line" in case "$line" in
"--- "*".zone") "--- "*".zone")
NAME=$(echo "$line" .zone | sed 's/--- //' | sed 's|a/||') NAME=$(echo "$line" .zone | sed 's/--- //' | sed 's|a/||')
CURRENT_ZONE=$(basename $NAME) CURRENT_ZONE=$(basename $NAME)
echo "*** Updating $CURRENT_ZONE"
;; ;;
"--- "*) "--- "*)
CURRENT_ZONE= CURRENT_ZONE=