From cbdb69fd8590f5836c0f42e09951ae521231d2aa Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 23 Dec 2019 06:44:37 +0900 Subject: [PATCH] feat: ignore .git and .github Close #57 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 960809787..b4d9d59ba 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -92,7 +92,7 @@ elif git clone --depth=1 --single-branch --branch "${remote_branch}" "${remote_r git rm -r --ignore-unmatch '*' fi - find "${GITHUB_WORKSPACE}/${PUBLISH_DIR}" -maxdepth 1 | \ + find "${GITHUB_WORKSPACE}/${PUBLISH_DIR}" -maxdepth 1 -not -name ".git" -not -name ".github" | \ tail -n +2 | \ xargs -I % cp -rf % "${local_dir}/" else