From 8f970891a7896dbb238551230beef5cda0c26ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:02:15 +0100 Subject: [PATCH 01/16] fix: Test release-plese --- .github/workflows/develop.yaml | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/.github/workflows/develop.yaml b/.github/workflows/develop.yaml index acd79d8..371b11e 100644 --- a/.github/workflows/develop.yaml +++ b/.github/workflows/develop.yaml @@ -3,7 +3,11 @@ name: Build, Package, Release [dev] on: push: branches: - - delevop + - develop + +permissions: + contents: write + pull-requests: write jobs: build: @@ -26,13 +30,24 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.MO_CLI_TOKEN }} - - name: Create Sematic Release Version - run: | - git config --global user.email "ruediger@pretzlaff.info" - git config --global user.name "ruedigerp" - git config --global credential.helper cache - npx standard-version --prerelease dev - git push --follow-tags origin delevop + # - name: Create Sematic Release Version + # run: | + # git config --global user.email "ruediger@pretzlaff.info" + # git config --global user.name "ruedigerp" + # git config --global credential.helper cache + # npx standard-version --prerelease dev + # git push --follow-tags origin delevop + + - name: release-please + uses: googleapis/release-please-action@v4 + with: + # this assumes that you have created a personal access token + # (PAT) and configured it as a GitHub action secret named + # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). + token: ${{ secrets.MO_CLI_TOKEN }} + # this is a built-in strategy in release-please, see "Action Inputs" + # for more options + release-type: simple - name: Get the current version id: get_version From babefbc40ba8c904a47237abc04fdb16b9499d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:04:24 +0100 Subject: [PATCH 02/16] fix: test release-please 2 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 11073ee..d72ae9e 100644 --- a/README.md +++ b/README.md @@ -147,3 +147,4 @@ Batch Command Options • zone: Only required for Bind configurations to specify the zone. • proxied: Only used for Cloudflare to enable or disable proxying. + From b94c3d43a19b88416a6d05343215126ad7ca9787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:08:57 +0100 Subject: [PATCH 03/16] fix: plase-release 3 --- .github/workflows/develop.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/develop.yaml b/.github/workflows/develop.yaml index 371b11e..1106829 100644 --- a/.github/workflows/develop.yaml +++ b/.github/workflows/develop.yaml @@ -47,7 +47,8 @@ jobs: token: ${{ secrets.MO_CLI_TOKEN }} # this is a built-in strategy in release-please, see "Action Inputs" # for more options - release-type: simple + release-type: simple + target-branch: ${{ github.ref_name }} - name: Get the current version id: get_version From 462e0314464f425215a90f3e520f81a76389cb16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:09:07 +0100 Subject: [PATCH 04/16] fix: test 3 --- .github/workflows/main.yaml | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 832220e..5880683 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -26,13 +26,25 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.MO_CLI_TOKEN }} - - name: Create Sematic Release Version - run: | - git config --global user.email "ruediger@pretzlaff.info" - git config --global user.name "dns-manager" - git config --global credential.helper cache - npx standard-version - git push --follow-tags origin main + # - name: Create Sematic Release Version + # run: | + # git config --global user.email "ruediger@pretzlaff.info" + # git config --global user.name "dns-manager" + # git config --global credential.helper cache + # npx standard-version + # git push --follow-tags origin main + + - name: release-please + uses: googleapis/release-please-action@v4 + with: + # this assumes that you have created a personal access token + # (PAT) and configured it as a GitHub action secret named + # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). + token: ${{ secrets.MO_CLI_TOKEN }} + # this is a built-in strategy in release-please, see "Action Inputs" + # for more options + release-type: simple + target-branch: ${{ github.ref_name }} - name: Get the current version id: get_version From df43f39bcd3f3b77830d081ebf3021103071f581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:09:57 +0100 Subject: [PATCH 05/16] chore(develop): release 1.0.13 --- CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index facd0ed..f6ca01b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,26 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.0.13](https://github.com/ruedigerp/dns-manager/compare/v1.0.12...v1.0.13) (2024-12-11) + + +### Bug Fixes + +* add batch mode für bind dns Zonen ([73f32f1](https://github.com/ruedigerp/dns-manager/commit/73f32f181e5b5f5708cf45e8b390a8f89672b29b)) +* add comments to cloudflare records ([8580514](https://github.com/ruedigerp/dns-manager/commit/8580514c04f672e9ccc66d0fed9404a407575169)) +* add empty check ([b055f13](https://github.com/ruedigerp/dns-manager/commit/b055f13c91a3c29da6895a073e42f8be56dcdceb)) +* add ip check ([18b88ae](https://github.com/ruedigerp/dns-manager/commit/18b88aed93f524c608acf684ff4a292d8b8092a0)) +* batch for cloudflare add record type ([7330181](https://github.com/ruedigerp/dns-manager/commit/73301813e81f7d99bb9563ddc6dbe122f7c47f28)) +* cf add record fix proxied ([b644d27](https://github.com/ruedigerp/dns-manager/commit/b644d2732e5c90289cb3ba6625340842608f9202)) +* edit action ([86154ba](https://github.com/ruedigerp/dns-manager/commit/86154ba5fcf83aed7eabe62ae7b254accf36273a)) +* fix some issue and make code more readable ([9a5f90d](https://github.com/ruedigerp/dns-manager/commit/9a5f90d4a9f99b3db0925032240472dbe4a4917c)) +* plase-release 3 ([b94c3d4](https://github.com/ruedigerp/dns-manager/commit/b94c3d43a19b88416a6d05343215126ad7ca9787)) +* quickfix comment flag ([7b808a2](https://github.com/ruedigerp/dns-manager/commit/7b808a2166adf56152d5e7fbd8931ee9e1ac056b)) +* remove dns-operator ([2583ddd](https://github.com/ruedigerp/dns-manager/commit/2583ddd983ab1839e115a78adafe54f2139454c5)) +* test 3 ([462e031](https://github.com/ruedigerp/dns-manager/commit/462e0314464f425215a90f3e520f81a76389cb16)) +* test release-please 2 ([babefbc](https://github.com/ruedigerp/dns-manager/commit/babefbc40ba8c904a47237abc04fdb16b9499d9b)) +* Test release-plese ([8f97089](https://github.com/ruedigerp/dns-manager/commit/8f970891a7896dbb238551230beef5cda0c26ce3)) + ### [1.0.12](https://github.com/ruedigerp/dns-manager/compare/v1.0.11...v1.0.12) (2024-11-12) From 8e63b4b490b850079b091fc90c6bb8e0805a83a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:19:05 +0100 Subject: [PATCH 06/16] chore: release 1.0.23 Release-As: 1.0.23 From 90e3df4dbf8fd03b5bb2b9bfd8a4673503b1dac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:19:53 +0100 Subject: [PATCH 07/16] chore(develop): release 1.0.23 --- CHANGELOG.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6ca01b..b4cf26c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,49 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.0.23](https://github.com/ruedigerp/dns-manager/compare/v1.0.13...v1.0.23) (2024-12-11) + + +### Bug Fixes + +* actions ([89c2417](https://github.com/ruedigerp/dns-manager/commit/89c24174e384de8b6b64fc1117cf609ad0bf42d2)) +* add action ([d45dfab](https://github.com/ruedigerp/dns-manager/commit/d45dfab10c4dfa8097c5cffc036474a06f31076a)) +* add batch mode für bind dns Zonen ([73f32f1](https://github.com/ruedigerp/dns-manager/commit/73f32f181e5b5f5708cf45e8b390a8f89672b29b)) +* add comments to cloudflare records ([8580514](https://github.com/ruedigerp/dns-manager/commit/8580514c04f672e9ccc66d0fed9404a407575169)) +* add empty check ([b055f13](https://github.com/ruedigerp/dns-manager/commit/b055f13c91a3c29da6895a073e42f8be56dcdceb)) +* add ip check ([18b88ae](https://github.com/ruedigerp/dns-manager/commit/18b88aed93f524c608acf684ff4a292d8b8092a0)) +* add provider bind and batch mode ([e8bbb69](https://github.com/ruedigerp/dns-manager/commit/e8bbb69eb6e40f9e392796248d8f5a39c1354014)) +* add readme ([af612ab](https://github.com/ruedigerp/dns-manager/commit/af612abbc8217a94cb070a5fe0e78f7837ce0853)) +* batch for cloudflare add record type ([7330181](https://github.com/ruedigerp/dns-manager/commit/73301813e81f7d99bb9563ddc6dbe122f7c47f28)) +* cf add record fix proxied ([b644d27](https://github.com/ruedigerp/dns-manager/commit/b644d2732e5c90289cb3ba6625340842608f9202)) +* cf delete add config vars ([ecbadd0](https://github.com/ruedigerp/dns-manager/commit/ecbadd04c50a530fc7972c701ba7500739debc78)) +* change class name in homebrew formular ([460e6c4](https://github.com/ruedigerp/dns-manager/commit/460e6c492905904488a5faf6a2902090ad447c8a)) +* edit action ([86154ba](https://github.com/ruedigerp/dns-manager/commit/86154ba5fcf83aed7eabe62ae7b254accf36273a)) +* edit homebrew classname ([f4e9e9d](https://github.com/ruedigerp/dns-manager/commit/f4e9e9da67162fdb806efbb9d41593d71d92192b)) +* first commit ([c3bd8bd](https://github.com/ruedigerp/dns-manager/commit/c3bd8bda090615a77b02c4bdcb2bbb920a12850d)) +* fix some issue and make code more readable ([9a5f90d](https://github.com/ruedigerp/dns-manager/commit/9a5f90d4a9f99b3db0925032240472dbe4a4917c)) +* gh release upload repo ([8910df1](https://github.com/ruedigerp/dns-manager/commit/8910df1bbd686c228cc1bb5bd8d1696f1aca8352)) +* gitignore, get domain not forun response ([b981b11](https://github.com/ruedigerp/dns-manager/commit/b981b1172aec8e34aafec8fb10521582b5915fd2)) +* homebrew build ([f1f2392](https://github.com/ruedigerp/dns-manager/commit/f1f239262f1fa43c2e7f2fef6297f8416a404cda)) +* permission on release*.sh ([c065638](https://github.com/ruedigerp/dns-manager/commit/c065638397e8b71021893a9116f4a326c18aa57d)) +* plase-release 3 ([b94c3d4](https://github.com/ruedigerp/dns-manager/commit/b94c3d43a19b88416a6d05343215126ad7ca9787)) +* quickfix comment flag ([7b808a2](https://github.com/ruedigerp/dns-manager/commit/7b808a2166adf56152d5e7fbd8931ee9e1ac056b)) +* remove dns-operator ([2583ddd](https://github.com/ruedigerp/dns-manager/commit/2583ddd983ab1839e115a78adafe54f2139454c5)) +* remove windows package ([1878a49](https://github.com/ruedigerp/dns-manager/commit/1878a496649f59762221e764ce96d7740a9d883f)) +* rename repos ([dfe6dc9](https://github.com/ruedigerp/dns-manager/commit/dfe6dc915876311e2e17df8019839fd91c821996)) +* repo rename ([8e69124](https://github.com/ruedigerp/dns-manager/commit/8e69124adedea9e3e0ce3586b6ff631c571a9f5d)) +* rtype for bind, add check params ([458019c](https://github.com/ruedigerp/dns-manager/commit/458019ccaedd0cc008204e5cfe074a5df0e452c4)) +* test 3 ([462e031](https://github.com/ruedigerp/dns-manager/commit/462e0314464f425215a90f3e520f81a76389cb16)) +* test release-please 2 ([babefbc](https://github.com/ruedigerp/dns-manager/commit/babefbc40ba8c904a47237abc04fdb16b9499d9b)) +* Test release-plese ([8f97089](https://github.com/ruedigerp/dns-manager/commit/8f970891a7896dbb238551230beef5cda0c26ce3)) +* typo ([f970c17](https://github.com/ruedigerp/dns-manager/commit/f970c17e08dceec2cbb8ccc409afa863c6a82560)) +* Update Homebrew & Scoop ([fd6b744](https://github.com/ruedigerp/dns-manager/commit/fd6b74499c8941af4154f7f939a40cd35e5c042b)) + + +### Miscellaneous Chores + +* release 1.0.23 ([8e63b4b](https://github.com/ruedigerp/dns-manager/commit/8e63b4b490b850079b091fc90c6bb8e0805a83a1)) + ## [1.0.13](https://github.com/ruedigerp/dns-manager/compare/v1.0.12...v1.0.13) (2024-12-11) From 38df26c412c324b6ba1eb11a2c150bb1d1dfe870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:23:02 +0100 Subject: [PATCH 08/16] fix: please-release 4 --- .github/workflows/develop.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/develop.yaml b/.github/workflows/develop.yaml index 1106829..49b25e9 100644 --- a/.github/workflows/develop.yaml +++ b/.github/workflows/develop.yaml @@ -56,8 +56,8 @@ jobs: - name: Create release in another repo run: | - echo "Creating release ${VERSION}" - gh release create refs/tags/${VERSION} --title "Release ${VERSION}" --repo ruedigerp/homebrew-dns-manager + echo "Creating release ${{ steps.release.outputs.release_created }}" + gh release create refs/tags/${{ steps.release.outputs.release_created }} --title "Release ${{ steps.release.outputs.release_created }}" --repo ruedigerp/homebrew-dns-manager env: GH_TOKEN: ${{ secrets.MO_CLI_TOKEN }} From 2b2b26039f84f43033943f29fbc651f007eef44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:24:05 +0100 Subject: [PATCH 09/16] fix: please-relase 5 --- .github/workflows/develop.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/develop.yaml b/.github/workflows/develop.yaml index 49b25e9..ae2336d 100644 --- a/.github/workflows/develop.yaml +++ b/.github/workflows/develop.yaml @@ -56,8 +56,8 @@ jobs: - name: Create release in another repo run: | - echo "Creating release ${{ steps.release.outputs.release_created }}" - gh release create refs/tags/${{ steps.release.outputs.release_created }} --title "Release ${{ steps.release.outputs.release_created }}" --repo ruedigerp/homebrew-dns-manager + echo "Creating release ${ steps.release.outputs.release_created }" + gh release create refs/tags/${ steps.release.outputs.release_created } --title "Release ${ steps.release.outputs.release_created }" --repo ruedigerp/homebrew-dns-manager env: GH_TOKEN: ${{ secrets.MO_CLI_TOKEN }} From 03456a7d5c4354c1a2057bd4071e78c852b5ce06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:27:18 +0100 Subject: [PATCH 10/16] fix: release-please 6 --- .github/workflows/develop.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/develop.yaml b/.github/workflows/develop.yaml index ae2336d..c7b42df 100644 --- a/.github/workflows/develop.yaml +++ b/.github/workflows/develop.yaml @@ -40,6 +40,7 @@ jobs: - name: release-please uses: googleapis/release-please-action@v4 + id: release with: # this assumes that you have created a personal access token # (PAT) and configured it as a GitHub action secret named @@ -56,10 +57,11 @@ jobs: - name: Create release in another repo run: | - echo "Creating release ${ steps.release.outputs.release_created }" - gh release create refs/tags/${ steps.release.outputs.release_created } --title "Release ${ steps.release.outputs.release_created }" --repo ruedigerp/homebrew-dns-manager + echo "Creating release ${VERSION}" + gh release create refs/tags/${VERSION} --title "Release ${VERSION}" --repo ruedigerp/homebrew-dns-manager env: GH_TOKEN: ${{ secrets.MO_CLI_TOKEN }} + VERSION: ${{ steps.release.outputs.release_created }} - name: Execute make all run: make -f Makefile-dev all From 2ef4f79a2d9d6424e8b09e34ed968c1d056173c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:34:52 +0100 Subject: [PATCH 11/16] chore: release 1.0.24 Release-As: 1.0.24 From b31916472ef249c1bba8b86c8ef723e5d14a2304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:36:44 +0100 Subject: [PATCH 12/16] fix: please-release 7 --- .github/workflows/develop.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/develop.yaml b/.github/workflows/develop.yaml index c7b42df..5d81d11 100644 --- a/.github/workflows/develop.yaml +++ b/.github/workflows/develop.yaml @@ -57,11 +57,11 @@ jobs: - name: Create release in another repo run: | - echo "Creating release ${VERSION}" + echo "Creating release ${{ steps.release.outputs.version }}" gh release create refs/tags/${VERSION} --title "Release ${VERSION}" --repo ruedigerp/homebrew-dns-manager env: GH_TOKEN: ${{ secrets.MO_CLI_TOKEN }} - VERSION: ${{ steps.release.outputs.release_created }} + VERSION: ${{ steps.release.outputs.version }} - name: Execute make all run: make -f Makefile-dev all @@ -77,9 +77,9 @@ jobs: run: | ls -lisa builds for tarball in builds/*.tar.gz; do - gh release upload "${{ env.VERSION }}" "$tarball" --repo ruedigerp/homebrew-dns-manager-dev + gh release upload "${{ steps.release.outputs.version }}" "$tarball" --repo ruedigerp/homebrew-dns-manager-dev done - gh release upload "${{ env.VERSION }}" "builds/dns-manager-dev-${{ env.VERSION }}-windows-amd64" --repo ruedigerp/homebrew-dns-manager-dev + gh release upload "${{ steps.release.outputs.version }}" "builds/dns-manager-dev-${{ steps.release.outputs.version }}-windows-amd64" --repo ruedigerp/homebrew-dns-manager-dev env: GH_TOKEN: ${{ secrets.MO_CLI_TOKEN }} @@ -95,7 +95,7 @@ jobs: cp ../dns-manager-dev.json . cp ../CHANGELOG.md . git add . - git commit -m " ${{ env.VERSION }}" + git commit -m " ${{ steps.release.outputs.version }}" git push env: GH_TOKEN: ${{ secrets.MO_CLI_TOKEN }} \ No newline at end of file From edf989a070fb83dee6c3fd4cd1e480acbec9822f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:38:36 +0100 Subject: [PATCH 13/16] fix: please-release 8 --- .github/workflows/develop.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/develop.yaml b/.github/workflows/develop.yaml index 5d81d11..7041b3e 100644 --- a/.github/workflows/develop.yaml +++ b/.github/workflows/develop.yaml @@ -58,7 +58,7 @@ jobs: - name: Create release in another repo run: | echo "Creating release ${{ steps.release.outputs.version }}" - gh release create refs/tags/${VERSION} --title "Release ${VERSION}" --repo ruedigerp/homebrew-dns-manager + gh release create refs/tags/${{ steps.release.outputs.version }} --title "Release ${{ steps.release.outputs.version }}" --repo ruedigerp/homebrew-dns-manager env: GH_TOKEN: ${{ secrets.MO_CLI_TOKEN }} VERSION: ${{ steps.release.outputs.version }} From 33f54e13615938b19e8b0d7c3a42cb5d0dc46cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:40:36 +0100 Subject: [PATCH 14/16] fix: 9 --- .github/workflows/develop.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/develop.yaml b/.github/workflows/develop.yaml index 7041b3e..d35a312 100644 --- a/.github/workflows/develop.yaml +++ b/.github/workflows/develop.yaml @@ -51,6 +51,10 @@ jobs: release-type: simple target-branch: ${{ github.ref_name }} + - name: Debug Outputs + run: | + echo "Outputs: ${{ toJson(steps.release.outputs) }}" + - name: Get the current version id: get_version run: echo "VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV From 2a3f535b9430189894c3f3b8ce42179a2bb25ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:46:24 +0100 Subject: [PATCH 15/16] fix: please-relase 10 --- .github/workflows/develop.yaml | 35 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/develop.yaml b/.github/workflows/develop.yaml index d35a312..6f0882f 100644 --- a/.github/workflows/develop.yaml +++ b/.github/workflows/develop.yaml @@ -42,30 +42,31 @@ jobs: uses: googleapis/release-please-action@v4 id: release with: - # this assumes that you have created a personal access token - # (PAT) and configured it as a GitHub action secret named - # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). token: ${{ secrets.MO_CLI_TOKEN }} - # this is a built-in strategy in release-please, see "Action Inputs" - # for more options release-type: simple target-branch: ${{ github.ref_name }} - - name: Debug Outputs - run: | - echo "Outputs: ${{ toJson(steps.release.outputs) }}" + - name: Fetch latest tags + run: git fetch --tags + + - name: Get latest version tag + id: get_tag + run: echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV - - name: Get the current version - id: get_version - run: echo "VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV + # - name: Debug Outputs + # run: | + # echo "Outputs: ${{ toJson(steps.release.outputs) }}" + + # - name: Get the current version + # id: get_version + # run: echo "VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV - name: Create release in another repo run: | - echo "Creating release ${{ steps.release.outputs.version }}" - gh release create refs/tags/${{ steps.release.outputs.version }} --title "Release ${{ steps.release.outputs.version }}" --repo ruedigerp/homebrew-dns-manager + echo "Creating release ${tag}" + gh release create refs/tags/${tag} --title "Release ${tag}" --repo ruedigerp/homebrew-dns-manager env: GH_TOKEN: ${{ secrets.MO_CLI_TOKEN }} - VERSION: ${{ steps.release.outputs.version }} - name: Execute make all run: make -f Makefile-dev all @@ -81,9 +82,9 @@ jobs: run: | ls -lisa builds for tarball in builds/*.tar.gz; do - gh release upload "${{ steps.release.outputs.version }}" "$tarball" --repo ruedigerp/homebrew-dns-manager-dev + gh release upload "${tag}" "$tarball" --repo ruedigerp/homebrew-dns-manager-dev done - gh release upload "${{ steps.release.outputs.version }}" "builds/dns-manager-dev-${{ steps.release.outputs.version }}-windows-amd64" --repo ruedigerp/homebrew-dns-manager-dev + gh release upload "${tag}" "builds/dns-manager-dev-${tag}-windows-amd64" --repo ruedigerp/homebrew-dns-manager-dev env: GH_TOKEN: ${{ secrets.MO_CLI_TOKEN }} @@ -99,7 +100,7 @@ jobs: cp ../dns-manager-dev.json . cp ../CHANGELOG.md . git add . - git commit -m " ${{ steps.release.outputs.version }}" + git commit -m " ${tag}" git push env: GH_TOKEN: ${{ secrets.MO_CLI_TOKEN }} \ No newline at end of file From 6a002c7c27b401c3ae5e009792904a51854e8f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20K=C3=BCpper?= Date: Wed, 11 Dec 2024 10:51:55 +0100 Subject: [PATCH 16/16] fix: change to please-release --- .github/workflows/main.yaml | 43 +++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5880683..d0eb87d 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -34,26 +34,41 @@ jobs: # npx standard-version # git push --follow-tags origin main + # - name: release-please + # uses: googleapis/release-please-action@v4 + # with: + # # this assumes that you have created a personal access token + # # (PAT) and configured it as a GitHub action secret named + # # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). + # token: ${{ secrets.MO_CLI_TOKEN }} + # # this is a built-in strategy in release-please, see "Action Inputs" + # # for more options + # release-type: simple + # target-branch: ${{ github.ref_name }} + + # - name: Get the current version + # id: get_version + # run: echo "VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV + - name: release-please uses: googleapis/release-please-action@v4 + id: release with: - # this assumes that you have created a personal access token - # (PAT) and configured it as a GitHub action secret named - # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). token: ${{ secrets.MO_CLI_TOKEN }} - # this is a built-in strategy in release-please, see "Action Inputs" - # for more options - release-type: simple + release-type: simple target-branch: ${{ github.ref_name }} - - name: Get the current version - id: get_version - run: echo "VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV + - name: Fetch latest tags + run: git fetch --tags + + - name: Get latest version tag + id: get_tag + run: echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV - name: Create release in another repo run: | - echo "Creating release ${VERSION}" - gh release create refs/tags/${VERSION} --title "Release ${VERSION}" --repo ruedigerp/homebrew-dns-manager + echo "Creating release ${tag}" + gh release create refs/tags/${tag} --title "Release ${tag}" --repo ruedigerp/homebrew-dns-manager env: GH_TOKEN: ${{ secrets.MO_CLI_TOKEN }} @@ -85,9 +100,9 @@ jobs: ls -lisa builds for tarball in builds/*.tar.gz; do echo "Tarball: $tarball" - gh release upload "${{ env.VERSION }}" "$tarball" --repo ruedigerp/homebrew-dns-manager + gh release upload "${tag}" "$tarball" --repo ruedigerp/homebrew-dns-manager done - gh release upload "${{ env.VERSION }}" "builds/dns-manager-${{ env.VERSION }}-windows-amd64" --repo ruedigerp/homebrew-dns-manager + gh release upload "${tag}" "builds/dns-manager-${tag}-windows-amd64" --repo ruedigerp/homebrew-dns-manager env: GH_TOKEN: ${{ secrets.MO_CLI_TOKEN }} @@ -103,7 +118,7 @@ jobs: cp ../dns-manager.json . cp ../CHANGELOG.md . git add . - git commit -m " ${{ env.VERSION }}" + git commit -m " ${tag}" git push env: GH_TOKEN: ${{ secrets.MO_CLI_TOKEN }} \ No newline at end of file