mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-09 21:36:52 +08:00
* 4.1.1-develop
* Updated docs
* chore(docs): Sync wiki to docs [skip-cd]
* chore(docs): Sync wiki to docs [skip-cd]
* Fixes #522
* (docs): automatically add Supported Version to README (#521)
* (docs): add version for qbit / qbit api to readme (#523)
(cherry picked from commit 37e560f7ef
)
* (docs): automate supported versions for readme
(docs): readme updates
(chore): fix pre-commit increase_version
* (chore): automate supported version updates
---------
Co-authored-by: bakerboy448 <mailto:55419169+bakerboy448@users.noreply.github.com>
* Adds pre-commit hook to update-readme-version
* Bump actions/setup-python from 4 to 5 (#525)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump actions/checkout from 3 to 4 (#526)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump peter-evans/create-pull-request from 4 to 6 (#527)
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 4 to 6.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/v4...v6)
---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Dependabot to auto-update qbittorrent-api on master
* 4.1.1
* fixes pre-commit on github actions
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Actionbot <actions@github.com>
Co-authored-by: bakerboy448 <55419169+bakerboy448@users.noreply.github.com>
Co-authored-by: bakerboy448 <mailto:55419169+bakerboy448@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
37 lines
1.2 KiB
Bash
Executable file
37 lines
1.2 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Check if there are any changes staged for commit
|
|
if [[ -z $(git diff --cached --name-only) ]]; then
|
|
echo "There are no changes staged for commit. Skipping version update."
|
|
exit 0
|
|
fi
|
|
|
|
# Check if the VERSION file is staged for modification
|
|
if git diff --cached --name-only | grep -q "VERSION"; then
|
|
echo "The VERSION file is already modified. Skipping version update."
|
|
exit 0
|
|
fi
|
|
|
|
# Read the current version from the VERSION file
|
|
current_version=$(<VERSION)
|
|
echo "Current version: $current_version"
|
|
|
|
# Check if "develop" is not present in the version string
|
|
if [[ $current_version != *"develop"* ]]; then
|
|
echo "The word 'develop' is not present in the version string."
|
|
exit 0
|
|
fi
|
|
|
|
# Extract the version number after "develop"
|
|
version_number=$(echo "$current_version" | sed -n 's/.*develop\([0-9]*\).*/\1/p')
|
|
|
|
# Increment the version number
|
|
new_version_number=$((version_number + 1))
|
|
|
|
# Replace the old version number with the new one
|
|
new_version=$(echo "$current_version" | sed "s/develop$version_number/develop$new_version_number/")
|
|
|
|
# Update the VERSION file
|
|
sed -i "s/$current_version/$new_version/" VERSION
|
|
|
|
echo "Version updated to: $new_version"
|