Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release-1.x] ci: update release-please-action to v4 #360

Merged
merged 2 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading