Remove dependency of Xceed library (#853) #79
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }} |