forked from argoproj/argo-rollouts
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 1.07 KB
/
changelog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Update Changelog
on:
release:
types: [published]
permissions:
contents: read
jobs:
updateChangelog:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Update Changelog
run: |
curl -o git-chglog.tar.gz -L https://github.com/git-chglog/git-chglog/releases/download/v0.15.1/git-chglog_0.15.1_linux_amd64.tar.gz
tar -zxvf git-chglog.tar.gz
chmod u+x git-chglog
./git-chglog --sort semver -o CHANGELOG.md v1.3.1..
rm git-chglog
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: update changelog
title: "docs: Update Changelog"
body: Update changelog to reflect release changes
branch: update-changelog
base: master
add-paths: |
CHANGELOG.md