From 5a2dbb2d8d4a2070411081fc7890541cff0aab2c Mon Sep 17 00:00:00 2001 From: Jonas L Date: Tue, 19 Dec 2023 13:42:09 +0100 Subject: [PATCH] ci: update release-please-action to v4 (#648) --- .github/release-please-config.json | 12 ++++++++++++ .github/release-please-manifest.json | 1 + .github/workflows/release-please.yml | 8 ++++---- 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 .github/release-please-config.json create mode 100644 .github/release-please-manifest.json diff --git a/.github/release-please-config.json b/.github/release-please-config.json new file mode 100644 index 00000000..b3ec043a --- /dev/null +++ b/.github/release-please-config.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "bootstrap-sha": "fc023e8337f2f8f4c6e8cd3742f989916f682c77", + "include-component-in-tag": false, + "include-v-in-tag": true, + "packages": { + ".": { + "release-type": "go", + "package-name": "hcloud-cli" + } + } +} diff --git a/.github/release-please-manifest.json b/.github/release-please-manifest.json new file mode 100644 index 00000000..78cafcec --- /dev/null +++ b/.github/release-please-manifest.json @@ -0,0 +1 @@ +{".":"1.41.0"} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 4bf47f76..0304e1f6 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -6,13 +6,13 @@ on: jobs: release-please: - # The secret HCLOUD_BOT_TOKEN is only available on the main repo, not in forks. + # Do not run on forks. if: github.repository == 'hetznercloud/cli' runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - uses: google-github-actions/release-please-action@v4 with: token: ${{ secrets.HCLOUD_BOT_TOKEN }} - release-type: go - package-name: hcloud-cli + config-file: .github/release-please-config.json + manifest-file: .github/release-please-manifest.json