diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index a0940cf..9f62392 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -10,29 +10,15 @@ jobs: name: Release Drafter runs-on: ubuntu-latest steps: - - name: 📥 Checkout the repository + - name: Checkout the repository uses: actions/checkout@v4.2.2 - 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/release-drafter@v6.0.0 with: tag: ${{ steps.version.outputs.version }} diff --git a/custom_components/healthchecksio/manifest.json b/custom_components/healthchecksio/manifest.json index 981508a..1434010 100644 --- a/custom_components/healthchecksio/manifest.json +++ b/custom_components/healthchecksio/manifest.json @@ -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" } \ No newline at end of file