Skip to content

Commit 7808ee1

Browse files
committed
chore: move starter workflow into subfolder
The `.hook` suffix does not make it easy to maintain code in the editor
1 parent 1914c78 commit 7808ee1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tools/init

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,9 @@ init_files() {
8787
rm -rf .github
8888
else
8989
## Change the files of `.github`
90-
mv .github/workflows/$ACTIONS_WORKFLOW.hook .
91-
rm -rf .github
92-
mkdir -p .github/workflows
93-
mv ./${ACTIONS_WORKFLOW}.hook .github/workflows/${ACTIONS_WORKFLOW}
90+
mv .github/workflows/starter/$ACTIONS_WORKFLOW .
91+
rm -rf .github && mkdir -p .github/workflows
92+
mv ./$ACTIONS_WORKFLOW .github/workflows/${ACTIONS_WORKFLOW}
9493

9594
## Cleanup image settings in site config
9695
_sedi "s/^cdn:.*/cdn:/;s/^avatar:.*/avatar:/" _config.yml

0 commit comments

Comments
 (0)