Skip to content

Commit 0deef9d

Browse files
authored
feat: update default Go version to 1.25 (#202)
chore: Update default go version to 1.25 and document versions input
1 parent 09d9424 commit 0deef9d

4 files changed

Lines changed: 21 additions & 4 deletions

File tree

build-plugin/README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,27 @@ If your target branch is protected, the default github.token cannot push changes
135135
```
136136
<!-- x-release-please-end-version -->
137137

138+
## Using a specific Go version
139+
140+
If your plugin requires a different Go version than the default, you can specify it using the `go-version` input:
141+
<!-- x-release-please-start-version -->
142+
143+
```yaml
144+
- uses: grafana/plugin-actions/build-plugin@build-plugin/v1.0.2
145+
with:
146+
policy_token: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
147+
go-version: '1.23'
148+
```
149+
<!-- x-release-please-end-version -->
150+
138151
## Options
139152

140153
- `policy_token`: Grafana access policy token. https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin#generate-an-access-policy-token
141154
- `grafana_token`: [deprecated] Grafana API Key to sign a plugin. Prefer `policy_token`. See https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin
142-
- attestation: If `true`, create a verifiable attestation for the plugin using sigstore. See [attestation of plugin package](#attestation-of-plugin-package)
143-
- use_changelog_generator: If `true`, generate a changelog for the plugin and commit it to the repository. See [changelog generation](#changelog-generation)
155+
- `go-version`: (Optional) Go version to use for building backend plugins. Defaults to "1.25". Example: `go-version: '1.23'`
156+
- `node-version`: (Optional) Node.js version to use. Defaults to "20".
157+
- `attestation`: If `true`, create a verifiable attestation for the plugin using sigstore. See [attestation of plugin package](#attestation-of-plugin-package)
158+
- `use_changelog_generator`: If `true`, generate a changelog for the plugin and commit it to the repository. See [changelog generation](#changelog-generation)
144159

145160
## Troubleshooting
146161

build-plugin/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ inputs:
2525
go-version:
2626
description: "Version of go"
2727
required: false
28-
default: "1.21"
28+
default: "1.25"
2929
node-version:
3030
description: "Version of node"
3131
required: false

package-plugin/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,5 @@ jobs:
6464
## Options
6565
6666
- `policy_token`: Grafana access policy token. https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin#generate-an-access-policy-token
67+
- `go-version`: (Optional) Go version to use for building backend plugins. Defaults to "1.25".
68+
- `node-version`: (Optional) Node.js version to use. Defaults to "20".

package-plugin/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ inputs:
2323
go-version:
2424
description: "Version of go"
2525
required: false
26-
default: "1.21"
26+
default: "1.25"
2727
node-version:
2828
description: "Version of node"
2929
required: false

0 commit comments

Comments
 (0)