Update action.yml

This commit is contained in:
2025-08-15 19:49:47 +03:00
parent 0f36526146
commit 6de949d4c7

View File

@@ -13,7 +13,9 @@ runs:
set -e
USERNAME=$(echo "${GITHUB_REPOSITORY}" | cut -d'/' -f1)
REPO=$(echo "${GITHUB_REPOSITORY}" | cut -d'/' -f2)
echo "For user $USERNAME, repository $REPO"
TARGET="/srv/sites/${USERNAME}/${REPO}"
mkdir -p "$TARGET"
echo "$(hostname)"
rm -rf "$TARGET"/*
cp -r "${{ inputs.root }}/." "$TARGET/"