client_golang/.github/workflows/changelog-generation.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

---
name: Raise PR with Changelog
on:
push:
branches:
- "release-*"
jobs:
build-and-run-release-notes:
runs-on: ubuntu-latest
steps:
- name: Check out code onto GOPATH
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
check-latest: true
- name: Build and Install Release Notes Tool
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./generate-changelog.sh
cat CHANGELOG.md
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: "chore: autogenerate changelog"
title: "Changelog"
body: This PR contains an autogenerated changelog for newer commits. The new changelog can be modified [here](https://github.com/prometheus/client_golang/blob/changelog-branch/CHANGELOG.md).
branch: changelog-branch
signoff: true
delete-branch: true
labels: automated-pr, release-note-none