https://github.com/grafana/grafana-github-actions-go
Grafana GitHub Actions in Golang
https://github.com/grafana/grafana-github-actions-go
backstage-include
Last synced: 8 months ago
JSON representation
Grafana GitHub Actions in Golang
- Host: GitHub
- URL: https://github.com/grafana/grafana-github-actions-go
- Owner: grafana
- Created: 2022-09-20T17:53:32.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-30T16:21:45.000Z (over 1 year ago)
- Last Synced: 2025-01-30T17:29:04.129Z (over 1 year ago)
- Topics: backstage-include
- Language: Go
- Homepage:
- Size: 556 KB
- Stars: 3
- Watchers: 11
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# grafana-github-actions-go
This repository contains a handful of GitHub Actions that are mostly used in the context of releasing Grafana packages.
## update-changelog
This action generates an update to the `CHANGELOG.md` file based on pull-requests included in a release-milestone.
The following inputs need to be provided:
- `version` (e.g. `9.4.0`) which matches the name of the relevant milestone inside the grafana/grafana project.
- `token` which represents a GitHub token which has read access to the relevant projects *and* can push to the target project for creating a new PR with the updated changelog.
- `metrics_api_endpoint` (default: `https://graphite-us-central1.grafana.net/metrics`): Graphite HTTP endpoint to submit usage metrics to.
- `metrics_api_key`: API key for that Graphite endpoint (will be used as HTTP Basic Auth password).
- `metrics_api_username`: Username for that Graphite endpoint.
Example workflow:
```yaml
name: Update changelog
on:
workflow_dispatch:
inputs:
version:
description: Needs to match, exactly, the name of a version
required: true
type: string
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: grafana/grafana-github-actions-go/update-changelog@main
with:
version: ${{ inputs.version }}
token: "${{secrets.GH_TOKEN}}"
```