Skip to content

bump: version 0.1.0 → 0.2.0 #30

bump: version 0.1.0 → 0.2.0

bump: version 0.1.0 → 0.2.0 #30

Workflow file for this run

name: Ci
on:
push:
jobs:
bump:
if: "!startsWith(github.event.head_commit.message, 'bump:') && github.ref == 'refs/heads/main'"
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.8.12
architecture: x64
- name: Checkout Repository
uses: actions/checkout@main
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
fetch-depth: 0
- name: Install dependencies
run: pip install -U commitizen
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
steps:
- name: Checkout Repository
uses: actions/checkout@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.8.12
architecture: x64
- name: Get version from tag
id: tag_name
run: |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
shell: bash
- name: Get notes
id: generate_notes
uses: anmarkoulis/[email protected]
with:
tag_name: ${{ github.ref }}
changelog: CHANGELOG.md
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
prerelease: false
draft: false
body: |
${{join(fromJson(steps.generate_notes.outputs.notes).notes, '')}}