-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (59 loc) · 1.86 KB
/
changelog.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
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
70
71
72
73
name: Detect Changes
# todo change branch main
on:
push:
branches:
- "main"
workflow_dispatch:
jobs:
detect-changes:
runs-on: ubuntu-latest
if: github.event_name != 'workflow_dispatch'
steps:
-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
fetch-depth: 0
# https://github.com/tj-actions/changed-files/blob/main/README.md#inputs
-
name: Detect Changes
uses: tj-actions/changed-files@d6babd6899969df1a11d14c368283ea4436bca78 # v44.5.2
id: changes
with:
files: |
*.go
*.mod
*Dockerfile
# Makefile
-
name: Generate Changelog
run: make generate-changelog-ci
if: steps.changes.outputs.any_changed == 'true'
# https://github.com/peter-evans/create-pull-request#action-inputs
-
name: Create Pull Request
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6
with:
token: "${{ secrets.GITHUB_TOKEN }}"
branch: "change/${{ github.sha }}"
commit-message: "new changes"
title: "maybe new release?"
delete-branch: true
release-dispatched:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
steps:
-
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
fetch-depth: 0
- name: Generate Changelog
run: make generate-changelog-ci
- name: Create Pull Request
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # v6
with:
token: "${{ secrets.GITHUB_TOKEN }}"
branch: "change/${{ github.sha }}"
commit-message: "new changes"
title: "probably new release..."
delete-branch: true