-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move update-version to ci (#301)
- Loading branch information
Showing
7 changed files
with
39 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Needed to get tags | ||
- uses: oven-sh/setup-bun@v2 | ||
with: | ||
bun-version: latest | ||
|
@@ -38,3 +40,16 @@ jobs: | |
uses: crate-ci/[email protected] | ||
- name: Lint | ||
run: bun lint | ||
- name: Check version | ||
shell: bash | ||
run: | | ||
# check for version changes | ||
./update-version.sh | ||
# Check if any changes were made in README.md files | ||
if [[ -n "$(git status --porcelain -- '**/README.md')" ]]; then | ||
echo "Version mismatch detected. Please run ./update-version.sh and commit the updated README.md files." | ||
git diff -- '**/README.md' | ||
exit 1 | ||
else | ||
echo "No version mismatch detected. All versions are up to date." | ||
fi |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters