Skip to content

Commit

Permalink
Set version to 130.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Dec 18, 2024
1 parent 2d56ce9 commit adcad14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,15 @@ jobs:
name: Release Drafter
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout the repository
- name: Checkout the repository
uses: actions/[email protected]
with:
fetch-depth: 0

- name: ⏭️ Get next version
- name: Get next version
id: version
run: |
declare -i newpost
latest=$(git describe --tags $(git rev-list --tags --max-count=1))
latestpre=$(echo "$latest" | awk '{split($0,a,"."); print a[1] "." a[2]}')
datepre=$(date --utc '+%y.%-m')
if [[ "$latestpre" == "$datepre" ]]; then
latestpost=$(echo "$latest" | awk '{split($0,a,"."); print a[3]}')
newpost=$latestpost+1
else
newpost=0
fi
echo Current version: $latest
echo New target version: $datepre.$newpost
echo "::set-output name=version::$datepre.$newpost"
echo "version=$(jq .version -r ./custom_components/healthchecksio/manifest.json)" >> $GITHUB_ENV
- name: 🏃 Run Release Drafter
- name: Run Release Drafter
uses: release-drafter/[email protected]
with:
tag: ${{ steps.version.outputs.version }}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/healthchecksio/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"documentation": "https://github.com/custom-components/healthchecksio",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/custom-components/healthchecksio/issues",
"version": "0.0.0"
"version": "130.1.0"
}

0 comments on commit adcad14

Please sign in to comment.