From b72fe0605ec6b43ab189038bf8be06100e83021b Mon Sep 17 00:00:00 2001 From: Jonas L Date: Tue, 19 Dec 2023 14:20:55 +0100 Subject: [PATCH] ci: update release-please-action to v4 (#341) --- .github/release-please-config.json | 13 +++++++++++++ .github/release-please-manifest.json | 1 + .github/workflows/release-please.yml | 13 +++++-------- 3 files changed, 19 insertions(+), 8 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 0000000..4fccf05 --- /dev/null +++ b/.github/release-please-config.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "bootstrap-sha": "155a565bd3dfbce3177554626ccea6ac35807786", + "include-component-in-tag": false, + "include-v-in-tag": true, + "packages": { + ".": { + "release-type": "python", + "package-name": "hcloud", + "extra-files": ["hcloud/__version__.py"] + } + } +} diff --git a/.github/release-please-manifest.json b/.github/release-please-manifest.json new file mode 100644 index 0000000..a99de52 --- /dev/null +++ b/.github/release-please-manifest.json @@ -0,0 +1 @@ +{".":"1.32.0"} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index b11e876..ba90290 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,4 +1,4 @@ -name: Release please +name: Release-please on: push: @@ -6,16 +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/hcloud-python' 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: python - package-name: hcloud - - extra-files: | - hcloud/__version__.py + config-file: .github/release-please-config.json + manifest-file: .github/release-please-manifest.json