File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -51,25 +51,14 @@ init_files() {
5151 rm -rf .github
5252 else
5353 # # Change the files of `.github`
54-
5554 mv .github/workflows/$ACTIONS_WORKFLOW .hook .
5655 rm -rf .github
5756 mkdir -p .github/workflows
5857 mv ./${ACTIONS_WORKFLOW} .hook .github/workflows/${ACTIONS_WORKFLOW}
5958
60- # # Ensure the gh-actions trigger branch
61-
62- _workflow=" .github/workflows/${ACTIONS_WORKFLOW} "
63- _default_branch=" $( git symbolic-ref refs/remotes/origin/HEAD | sed ' s@^refs/remotes/origin/@@' ) "
64- _lineno=" $( sed -n " /branches:/=" " $_workflow " ) "
65-
66- sed -i.$TEMP_SUFFIX " $(( _lineno + 1 )) s/- .*/- ${_default_branch} /" " $_workflow "
67- rm -f " $_workflow .$TEMP_SUFFIX "
68-
6959 # # Cleanup image settings in site config
7060 sed -i.$TEMP_SUFFIX " s/^img_cdn:.*/img_cdn:/;s/^avatar:.*/avatar:/" _config.yml
7161 rm -f _config.yml.$TEMP_SUFFIX
72-
7362 fi
7463
7564 # trace the gem lockfile on user-end
@@ -82,7 +71,7 @@ init_files() {
8271
8372 # save changes
8473 git add -A
85- git commit -m " [Automation] Initialize the environment. " -q
74+ git commit -m " chore: initialize the environment" -q
8675
8776 echo " [INFO] Initialization successful!"
8877}
You can’t perform that action at this time.
0 commit comments