docs: clarify renaming config folder prefix #31
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[0-9]+.[0-9]+.[0-9]+-ck8s[0-9]+' | |
jobs: | |
release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Fetches all tags | |
- 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 the version | |
id: get_version | |
run: echo ::set-output name=VERSION::$(git describe --tags --abbrev=0 HEAD) | |
- name: Get the Kubespray version | |
id: get_kubespray_version | |
run: echo ::set-output name=VERSION::$(echo "${{ steps.get_version.outputs.VERSION }}" | sed 's/v\(.*\)-.*/\1/') | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.get_version.outputs.VERSION }} | |
release_name: ${{ steps.get_version.outputs.VERSION }} | |
body: | | |
See [CHANGELOG](https://github.com/elastisys/compliantkubernetes-kubespray/blob/${{ steps.get_version.outputs.VERSION }}/changelog/${{ steps.get_kubespray_version.outputs.VERSION }}.md) for details. |