Skip to content

fix: changelog

fix: changelog #81

Workflow file for this run

name: Release
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
release:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Only on release branch
run: for branch in $(git branch -r --contains tags/${GITHUB_REF_NAME}); do [[ "${branch}" =~ release-.* ]] && exit 0; done; exit 1
- name: Get minor version
id: minor_version
run: echo ::set-output name=VERSION::$(echo "${{ github.ref_name }}" | sed 's/v\(.*\)\.[0-9]*$/\1/')
- name: Release
uses: softprops/action-gh-release@v1
with:
body: |
See [CHANGELOG](https://github.com/elastisys/compliantkubernetes-apps/blob/${{ github.ref_name }}/changelog/${{ steps.minor_version.outputs.VERSION }}.md) for details.