Use rsync to copy data.

This commit is contained in:
SamTV12345 2023-08-08 15:51:09 +02:00
parent 0ffcc322fb
commit 9117d69f17
No known key found for this signature in database
GPG key ID: E63EEC7466038043
2 changed files with 4 additions and 0 deletions

View file

@ -27,6 +27,7 @@ jobs:
path-type: inherit
install: >-
zip
rsync
-
name: Checkout repository
uses: actions/checkout@v3

View file

@ -33,6 +33,9 @@ try export GIT_WORK_TREE=${TMP_FOLDER}; git checkout HEAD -f \
|| fatal "failed to copy etherpad to temporary folder"
try mkdir "${TMP_FOLDER}"/.git
try git rev-parse HEAD >${TMP_FOLDER}/.git/HEAD
try cp -r src/package.json src/package-lock.json "${TMP_FOLDER}"
try rsync -a ./src/node_modules "${TMP_FOLDER}"/src/
try cd "${TMP_FOLDER}"
[ -f src/package.json ] || fatal "failed to copy etherpad to temporary folder"