Skip to content

ci: better changelog message #4

ci: better changelog message

ci: better changelog message #4

Workflow file for this run

name: "GitHub release"
on:
push:
branches:
- main
jobs:
run-tests:
name: "Run tests job"
uses: ./.github/workflows/_tests.yml
github-release:
if: ${{ contains(github.event.head_commit.message, format('chore(CI/CD){0} bump version', ':')) }}
name: Create a GitHub release
needs: [run-tests]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CICD_PAT_TOKEN }}
- name: Configure Git user
run: |
git config --local user.name "Kraina CI/CD"
git config --local user.email "[email protected]"
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- name: Extract version
id: extract-version
uses: winterjung/split@v2
with:
msg: ${{ github.event.head_commit.message }}
- name: Release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.CICD_PAT_TOKEN }}
tag_name: ${{ steps.extract-version.outputs._5 }}
body: ${{ steps.extract-release-notes.outputs.release_notes }}