-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.02 KB
/
changelog-tag.yaml
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
#Generate a new tag and changelog
name: "Proto version"
on:
pull_request:
branches:
- main
types: [closed]
permissions:
contents: write
jobs:
changelog-and-tag:
if: ${{!contains(github.head_ref, 'changelog')}}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
fetch-tags: 'true'
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install protoc
uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Install dependencies
run: |
go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest
make plugin
- name: Building new version
run: |
git config user.name github-actions
git config user.email github-actions@github.com
make changelog