chore: move starter workflow into subfolder

The `.hook` suffix does not make it easy to maintain code in the editor
This commit is contained in:
Cotes Chung 2024-04-14 04:45:52 +08:00
parent 1914c786a0
commit 7808ee157c
No known key found for this signature in database
GPG key ID: 0D9E54843167A808
2 changed files with 3 additions and 4 deletions

View file

@ -87,10 +87,9 @@ init_files() {
rm -rf .github rm -rf .github
else else
## Change the files of `.github` ## Change the files of `.github`
mv .github/workflows/$ACTIONS_WORKFLOW.hook . mv .github/workflows/starter/$ACTIONS_WORKFLOW .
rm -rf .github rm -rf .github && mkdir -p .github/workflows
mkdir -p .github/workflows mv ./$ACTIONS_WORKFLOW .github/workflows/${ACTIONS_WORKFLOW}
mv ./${ACTIONS_WORKFLOW}.hook .github/workflows/${ACTIONS_WORKFLOW}
## Cleanup image settings in site config ## Cleanup image settings in site config
_sedi "s/^cdn:.*/cdn:/;s/^avatar:.*/avatar:/" _config.yml _sedi "s/^cdn:.*/cdn:/;s/^avatar:.*/avatar:/" _config.yml