-
Notifications
You must be signed in to change notification settings - Fork 213
36 lines (34 loc) · 1.04 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
on:
workflow_dispatch
name: Create Changelog
jobs:
Main:
if: github.repository == 'ChaoticOnyx/OnyxBay' && github.ref == 'refs/heads/dev'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@afe4af09a72596f47d806ee5f8b2674ec07fdc73
with:
fetch-depth: 25
token: ${{ secrets.GITHUB_TOKEN }}
- name: .NET SDK setup
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Install depends
run: dotnet tool install -g dotnet-script
- name: Fetch, compile and commit changelogs
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: pwsh
run: ./scripts/CreateChangelog.ps1
- name: Create Pull Request
if: success()
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: changelog
branch-suffix: timestamp
delete-branch: true
title: Update Changelog
body: Automatic changelog generation.