Skip to content

Merge pull request #53 from canonical/bump-version #17

Merge pull request #53 from canonical/bump-version

Merge pull request #53 from canonical/bump-version #17

name: Release Drafter
on:
push:
branches:
- main
jobs:
get_version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.get_version.outputs.version }}
steps:
- uses: actions/checkout@v4
- id: get_version
run: echo "##[set-output name=version;]"$(grep '^[[:blank:]]*version' setup.py | cut -d'"' -f 2)
update_release_draft:
needs: get_version
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5
with:
tag: "${{ needs.get_version.outputs.version }}"
version: "${{ needs.get_version.outputs.version }}"
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}