-
Notifications
You must be signed in to change notification settings - Fork 53
47 lines (39 loc) · 1.18 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
37
38
39
40
41
42
43
44
45
46
#
# Copyright (c) Microsoft Corporation
# Licensed under the MIT License.
#
name : changelog
on:
push:
tags:
- '*'
jobs:
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v4
with:
configuration: ".github/workflows/changelog_configuration.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - run: |
# version=${{ github.ref }}
# echo ${version##*/} > version.txt
# - uses: EndBug/[email protected]
# with:
# message: 'Update version file'
# add: 'version.txt --force'
# branch: main
- name: Create Release
uses: softprops/action-gh-release@v1
with:
#tag_name: ${{ github.ref }}
#name: ${{ github.ref }}
body: ${{steps.github_release.outputs.changelog}}
prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-b') || contains(github.ref, '-a') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}