Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mathias Fredriksson <[email protected]>
  • Loading branch information
matifali and mafredri authored Sep 25, 2024
1 parent 8e8483b commit 591b0c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
bun lint
# check for version changes
./update-version.sh
if [[ $(git status --porcelain) ]]; then
if [[ -n "$(git status --porcelain)" ]]; then
echo "Version mismatch. Please run ./update-version.sh"
git diff
exit 1
Expand Down
4 changes: 2 additions & 2 deletions update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ for dir in "${changed_dirs[@]}"; do
}' "$file" > "$tmpfile" && mv "$tmpfile" "$file"

# Check if the README.md file has changed
if ! git diff --quiet "$dir/README.md"; then
if ! git diff --quiet -- "$dir/README.md"; then
echo "Bumping version in $dir/README.md"
fi
fi
Expand All @@ -48,7 +48,7 @@ done
# Check if any changes were made in README.md files
if [[ -n "$(git status --porcelain -- '**/README.md')" ]]; then
echo "Version mismatch detected. Please commit the updated README.md files."
git diff '**/README.md' # Show what is different in the README.md files
git diff -- '**/README.md' # Show what is different in the README.md files
exit 1
else
echo "No version mismatch detected. All versions are up to date."
Expand Down

0 comments on commit 591b0c0

Please sign in to comment.