From 7808ee157c7714e88e3ae2b504ae8a2961a02ec6 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 14 Apr 2024 04:45:52 +0800 Subject: [PATCH] chore: move starter workflow into subfolder The `.hook` suffix does not make it easy to maintain code in the editor --- .../{pages-deploy.yml.hook => starter/pages-deploy.yml} | 0 tools/init | 7 +++---- 2 files changed, 3 insertions(+), 4 deletions(-) rename .github/workflows/{pages-deploy.yml.hook => starter/pages-deploy.yml} (100%) diff --git a/.github/workflows/pages-deploy.yml.hook b/.github/workflows/starter/pages-deploy.yml similarity index 100% rename from .github/workflows/pages-deploy.yml.hook rename to .github/workflows/starter/pages-deploy.yml diff --git a/tools/init b/tools/init index bf1ef85..dd15c69 100755 --- a/tools/init +++ b/tools/init @@ -87,10 +87,9 @@ init_files() { rm -rf .github else ## Change the files of `.github` - mv .github/workflows/$ACTIONS_WORKFLOW.hook . - rm -rf .github - mkdir -p .github/workflows - mv ./${ACTIONS_WORKFLOW}.hook .github/workflows/${ACTIONS_WORKFLOW} + mv .github/workflows/starter/$ACTIONS_WORKFLOW . + rm -rf .github && mkdir -p .github/workflows + mv ./$ACTIONS_WORKFLOW .github/workflows/${ACTIONS_WORKFLOW} ## Cleanup image settings in site config _sedi "s/^cdn:.*/cdn:/;s/^avatar:.*/avatar:/" _config.yml