Commit 4af25955 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

refactor: update.sh

parent 34a02c16
Loading
Loading
Loading
Loading
+8 −12
Original line number Diff line number Diff line
@@ -5,17 +5,13 @@ git \
  https://github.com/dmitriysafronov/ansible_role-template.git \
  .update

if [[ -s .update/update.list ]]; then
  rsync -av \
  --include=.github/ \
  --include=.github/dependabot.yml \
  --include=.github/workflows/ \
  --include=.github/workflows/lint.yaml \
  --include=.github/workflows/rebase-on-push-to-main-branch.yaml \
  --include=.requirements/* \
  --include=update.sh \
    --include-from=.update/update.list \
    --exclude=* \
    --delete-after \
    .update/ \
    ./
fi

rm -rf .update/