-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (38 loc) · 1016 Bytes
/
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
name: Detect Changes
# todo change branch main
on:
push:
branches:
- "main"
jobs:
detect-changes:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
with:
fetch-depth: 0
# https://github.com/tj-actions/changed-files/blob/main/README.md#inputs
-
name: Detect Changes
uses: tj-actions/changed-files@v41.0.0
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@v4
with:
token: "${{ secrets.GITHUB_TOKEN }}"
branch: "change/${{ github.sha }}"
commit-message: "new changes"
title: "maybe new release?"