File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 88env :
99 BIN_PATH : ${{ github.workspace }}/bin
1010 INIT_ARGS : >
11- --apply
1211 --depth=1
13- --exclude='encrypted,externals,scripts'
1412 --promptDefaults
1513 --no-tty
1614 --color=false
15+ APPLY_ARGS : >
16+ --exclude='encrypted,externals,scripts'
17+ --no-tty
18+ --color=false
1719 DOCTOR_ARGS : >
1820 --keep-going
1921 --no-tty
@@ -37,15 +39,19 @@ jobs:
3739 - name : Init chezmoi
3840 shell : bash
3941 run : ${{ env.BIN_PATH }}/chezmoi init ${{ github.repository_owner }} ${{ env.INIT_ARGS }}
42+ - name : Chezmoi apply
43+ shell : bash
44+ run : ${{ env.BIN_PATH }}/chezmoi apply ${{ env.APPLY_ARGS }}
4045 - name : Chezmoi doctor
4146 shell : bash
4247 run : ${{ env.BIN_PATH }}/chezmoi doctor ${{ env.DOCTOR_ARGS }}
4348 - name : Check all template
4449 shell : bash
4550 run : |
46- for tmpl in $(find . -name '*.tmpl'); do
47- chezmoi execute-template < "$tmpl" > /dev/null
51+ tmpls=$(find . -type f -name "*.tmpl" ! -name ".chezmoi.toml.tmpl")
52+ for tmpl in "${tmpls[@]}"; do
53+ chezmoi execute-template < "$tmpl" &> /dev/null
4854 if [ $? -ne 0 ]; then
49- echo "$tmpl: Syntax Error"
55+ echo "$tmpl: Tmpl error" 1>&2
5056 fi
5157 done
You can’t perform that action at this time.
0 commit comments