From 09ebda5f7556d2b67043b7707853d0f40e283081 Mon Sep 17 00:00:00 2001 From: jo Date: Tue, 19 Dec 2023 10:18:13 +0100 Subject: [PATCH] ci: update release-please-action to v4 --- .github/release-please-config.json | 13 +++++++++++++ .github/release-please-manifest.json | 1 + .github/workflows/release-please.yml | 12 ++++-------- 3 files changed, 18 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 00000000..f7d5c46a --- /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": "46999c9b617abc87b9b5554b6f2c861c68c911a2", + "include-component-in-tag": false, + "include-v-in-tag": true, + "packages": { + ".": { + "release-type": "go", + "package-name": "packer-plugin-hcloud", + "extra-files": ["version/version.go"] + } + } +} diff --git a/.github/release-please-manifest.json b/.github/release-please-manifest.json new file mode 100644 index 00000000..f783fd01 --- /dev/null +++ b/.github/release-please-manifest.json @@ -0,0 +1 @@ +{".":"1.2.1"} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index b85e5df3..b715fbe7 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -6,17 +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/packer-plugin-hcloud' 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: packer-plugin-hcloud - draft: true - - extra-files: | - version/version.go + config-file: .github/release-please-config.json + manifest-file: .github/release-please-manifest.json