Skip to content

Remove dependency of Xceed library (#853) #79

Remove dependency of Xceed library (#853)

Remove dependency of Xceed library (#853) #79

# Copyright (c) .NET Foundation and Contributors
# See LICENSE file in the project root for full license information.
name: 'Build changelog for VS2019 version'
on:
push:
tags:
- '*'
repository_dispatch:
types: generate-changelog-vs2019
jobs:
compose_changelog:
if: startsWith(github.ref, 'refs/tags/v2019')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get previous release
id: previous_release
run: |
$tags=git tag --sort=committerdate --list v2019*
$previousTag = $tags[$tags.Count - 2]
echo "PREVIOUS_TAG=$previousTag" >> $env:GITHUB_ENV
shell: pwsh
- name: Build Changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v3
with:
configuration: '.github/.changelog-config-vs2019.json'
fromTag: ${{ env.PREVIOUS_TAG }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update changelog in release
id: update_release
uses: tubone24/update_release@v1.0
env:
GITHUB_TOKEN: ${{ github.token }}
TAG_NAME: ${{steps.build_changelog.outputs.toTag}}
with:
body: ${{ steps.build_changelog.outputs.changelog }}