Skip to content

Commit a2bfa6b

Browse files
authored
build: 🔨 use bash in justfile so CI doesn't need zsh (#149)
# Description Moved from #134. Closes #128 No review needed.
1 parent cb60560 commit a2bfa6b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

justfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ update-template:
3232

3333
# Check the commit messages on the current branch that are not on the main branch
3434
check-commits:
35-
#!/bin/zsh
35+
#!/usr/bin/env bash
3636
branch_name=$(git rev-parse --abbrev-ref HEAD)
3737
number_of_commits=$(git rev-list --count HEAD ^main)
3838
if [[ ${branch_name} != "main" && ${number_of_commits} -gt 0 ]]
3939
then
40+
# If issue happens, try `uv tool update-shell`
4041
uvx --from commitizen cz check --rev-range main..HEAD
4142
else
42-
echo "On `main` or current branch doesn't have any commits."
43+
echo "On 'main' or current branch doesn't have any commits."
4344
fi
4445

4546
# Check for spelling errors in files
@@ -48,7 +49,7 @@ check-spelling:
4849

4950
# Test and check that a Python package can be created from the template
5051
test is_seedcase_project:
51-
#!/bin/zsh
52+
#!/usr/bin/env bash
5253
test_name="test-python-package"
5354
test_dir="$(pwd)/_temp/{{ is_seedcase_project }}/$test_name"
5455
template_dir="$(pwd)"
@@ -103,7 +104,6 @@ test is_seedcase_project:
103104

104105
# Clean up any leftover and temporary build files
105106
cleanup:
106-
#!/bin/zsh
107107
rm -rf _temp
108108

109109
# Build the website using Quarto

0 commit comments

Comments
 (0)