-
Notifications
You must be signed in to change notification settings - Fork 245
69 lines (58 loc) · 1.68 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Changelog
on:
push:
tags:
- 'v*'
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
- name: Add GOBIN to PATH
run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
shell: bash
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update Changelog
run: |
make changelog
make spell-check-fix
- uses: actions/upload-artifact@v3
with:
name: CHANGELOG.md
path: CHANGELOG.md
- name: Checkout the pull request base
uses: actions/checkout@v4
with:
ref: master
- uses: actions/download-artifact@v3
with:
name: CHANGELOG.md
path: .
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
base: master
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore(docs): update changelog'
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: update/changelog
title: 'chore(docs): update changelog'
body: |
Update changelog
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
labels: |
report
automated pr
- name: Check output
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"