Skip to content

Commit d7a2357

Browse files
committed
ci: fix
1 parent 38be896 commit d7a2357

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/test-install.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
--no-tty
1414
--color=false
1515
APPLY_ARGS: >
16-
--exclude='encrypted,externals,scripts'
16+
--exclude=encrypted,externals,scripts
1717
--parent-dirs
1818
--no-tty
1919
--color=false
@@ -36,23 +36,32 @@ jobs:
3636
steps:
3737
- name: Install chezmoi
3838
shell: bash
39-
run: bash <(curl -fsLS get.chezmoi.io) -b ${{ env.BIN_PATH }}
39+
run: bash <(curl -fsLS get.chezmoi.io) -b '${{ env.BIN_PATH }}'
40+
41+
- name: Export ${{ env.BIN_PATH }} to GITHUB_PATH
42+
shell: bash
43+
run: echo '${{ env.BIN_PATH }}' >> "$GITHUB_PATH"
44+
4045
- name: Init chezmoi
4146
shell: bash
42-
run: ${{ env.BIN_PATH }}/chezmoi init ${{ github.repository_owner }} ${{ env.INIT_ARGS }}
47+
run: chezmoi init ${{ github.repository_owner }} ${{ env.INIT_ARGS }}
48+
4349
- name: Chezmoi apply
4450
shell: bash
45-
run: ${{ env.BIN_PATH }}/chezmoi apply ${{ env.APPLY_ARGS }}
51+
run: chezmoi apply ${{ env.APPLY_ARGS }}
52+
4653
- name: Chezmoi doctor
4754
shell: bash
48-
run: ${{ env.BIN_PATH }}/chezmoi doctor ${{ env.DOCTOR_ARGS }}
55+
run: chezmoi doctor ${{ env.DOCTOR_ARGS }}
56+
4957
- name: Check all template
58+
working-directory: ${{ env.HOME }}/.local/share/chezmoi
5059
shell: bash
5160
run: |
5261
tmpls=$(find . -type f -name "*.tmpl" ! -name ".chezmoi.toml.tmpl")
5362
for tmpl in "${tmpls[@]}"; do
54-
chezmoi execute-template < "$tmpl" &> /dev/null
63+
chezmoi execute-template < "$tmpl" &>/dev/null
5564
if [ $? -ne 0 ]; then
56-
echo "$tmpl: Tmpl error" 1>&2
65+
echo "$tmpl: Template error" 1>&2
5766
fi
5867
done

0 commit comments

Comments
 (0)