Bumped version to 1.1.0 #73
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: Creating a new release and changelog | |
on: | |
push: | |
branches: | |
- main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
version_changelog_relase: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.WORKFLOWS_PAT }} | |
- name: Getting current version and generating changelog | |
run: | | |
TARGET_FILE="nova/core/galaxy.yml" | |
CURRENT_VERSION=$(cat nova/core/galaxy.yml | grep version: | cut -d " " -f 2) | |
echo $CURRENT_VERSION | |
echo "LATEST_TAG=$CURRENT_VERSION" >> $GITHUB_ENV | |
# Getting upstream tags | |
git fetch --tags https://github.com/novateams/nova.core | |
git push --tags | |
# Creating temp changelog file | |
git log --pretty=format:"- %s" $(git describe --tags --abbrev=0 HEAD^^)..HEAD > CHANGELOG.md | |
- uses: ncipollo/release-action@v1 | |
with: | |
tag: "v${{ env.LATEST_TAG }}" | |
bodyFile: CHANGELOG.md |