Skip to content

⬆️ auto update by pre-commit hooks #55

⬆️ auto update by pre-commit hooks

⬆️ auto update by pre-commit hooks #55

name: Release Drafter
on:
push:
branches:
- master
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: read
jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: master
- name: Setup Poetry
uses: Gr1N/setup-poetry@v8
- name: Update poetry.lock
run: poetry update --lock
- run: echo "TAG_NAME=v$(poetry version -s)" >> $GITHUB_ENV
- uses: release-drafter/release-drafter@v5
with:
name: ${{ env.TAG_NAME }}
tag: ${{ env.TAG_NAME }}
publish: true
env:
GITHUB_TOKEN: ${{ secrets.ORG_TOKEN }}