Skip to content

Commit

Permalink
[Backport release-1.x] ci: update release-please-action to v4 (#360)
Browse files Browse the repository at this point in the history
Backport 97d13cd from #359.

BEGIN_COMMIT_OVERRIDE
ci: update release-please-action to v4 #360
END_COMMIT_OVERRIDE

---------

Co-authored-by: Jonas L <[email protected]>
  • Loading branch information
github-actions[bot] and jooola authored Dec 19, 2023
1 parent 610e949 commit 314c3c0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
13 changes: 13 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"bootstrap-sha": "610e949e39fbb991eef697082064254c2871b219",
"include-component-in-tag": false,
"include-v-in-tag": true,
"packages": {
".": {
"release-type": "go",
"package-name": "hcloud-go",
"extra-files": ["hcloud/hcloud.go"]
}
}
}
1 change: 1 addition & 0 deletions .github/release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{".":"1.53.0"}
22 changes: 8 additions & 14 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,19 @@
name: Release-please

on:
push:
branches:
- main
- release-1.x

name: release-please

jobs:
release-please:
# Do not run on forks.
if: github.repository == 'hetznercloud/hcloud-go'

runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
- uses: google-github-actions/release-please-action@v4
with:
release-type: go
package-name: hcloud-go

# hcloud-go is consumed directly from the git tag.
# To make sure that the version in the user-agent is up-to-date,
# we need to write it to a file that is included in the git tag.
extra-files: |
hcloud/hcloud.go
# Configuration for multiple active release branches
default-branch: ${{ github.ref_name }}
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json

0 comments on commit 314c3c0

Please sign in to comment.