Update Changelog for PR #17
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
name: Release | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
changelog: | |
name: Update Changelog | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get version from tag | |
env: | |
GITHUB_REF: ${{ github.ref }} | |
run: | | |
export CURRENT_VERSION=${GITHUB_TAG/refs\/tags\/v/} | |
echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Update Changelog | |
uses: heinrichreimer/github-changelog-generator-action@v2.4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
issues: true | |
issuesWoLabels: true | |
pullRequests: true | |
prWoLabels: true | |
addSections: '{"documentation":{"prefix":"**Documentation:**","labels":["documentation"]}}' | |
- name: Git Auto Commit | |
uses: stefanzweifel/git-auto-commit-action@v5.0.1 | |
with: | |
commit_message: Update Changelog for tag ${{ env.CURRENT_VERSION }} | |
file_pattern: CHANGELOG.md | |
release_notes: | |
name: Create Release Notes | |
runs-on: ubuntu-latest | |
needs: changelog | |
steps: | |
- name: Get version from tag | |
env: | |
GITHUB_REF: ${{ github.ref }} | |
run: | | |
export CURRENT_VERSION=${GITHUB_TAG/refs\/tags\/v/} | |
echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Changelog Reader | |
uses: mindsers/changelog-reader-action@v2.2.3 | |
id: changelog_reader | |
with: | |
version: ${{ env.CURRENT_VERSION }} | |
path: ./CHANGELOG.md | |
- name: Github Release | |
uses: elgohr/Github-Release-Action@release-20241111151247 | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag: ${{ github.ref }} | |
title: Release ${{ github.ref }} |