From adcad145a1e1d20354c311972e177840d81c6d19 Mon Sep 17 00:00:00 2001 From: ludeeus Date: Wed, 18 Dec 2024 16:06:41 +0000 Subject: [PATCH] Set version to 130.1.0 --- .github/workflows/release-drafter.yml | 22 ++++--------------- .../healthchecksio/manifest.json | 2 +- 2 files changed, 5 insertions(+), 19 deletions(-) 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