-
-
Notifications
You must be signed in to change notification settings - Fork 237
47 lines (45 loc) · 1.39 KB
/
generate_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
on:
push:
branches:
- main
permissions:
contents: write
checks: write
actions: read
packages: write
pull-requests: write
name: Generate Changelog
jobs:
generate-changelog:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release-please
with:
release-type: simple
package-name: release-please-action
- name: Install MarkdownToBBCodeSteam
run: dotnet tool install -g Converter.MarkdownToBBCodeSteam.Tool
shell: pwsh
- name: Checkout Repository
uses: actions/checkout@v4
- name: Shorten Changelog
run : |
awk '/^## / {count++} count <= 2 {print;}' CHANGELOG.md > CHANGELOG-SHORT.md
- name: Create BB Code Changelog for Steam
run: |
markdown_to_bbcodesteam -i "CHANGELOG-SHORT.md" -o "CHANGELOG-BBCODE.txt";
shell: pwsh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: "chore(main): Update Steam BBCode Changelog"
branch: steam-changelog
title: "chore(main): Update Steam BBCode Changelog"
body: |
:robot: I have updated the Steam game mode changelog *beep* *boop*
delete-branch: true
signoff: false
add-paths: |
CHANGELOG-BBCODE.txt
CHANGELOG-SHORT.md