.forgejo/workflows/ci.yaml: WIP
/ deploy_script (push) Successful in 2s
Details
/ deploy_script (push) Successful in 2s
Details
This commit is contained in:
parent
634f0ce693
commit
5e311b0abf
|
@ -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=
|
||||||
|
|
Loading…
Reference in New Issue