Merge pull request #108 from PAICookers/patch #24
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 Drafter | |
on: | |
push: | |
tags: | |
- v* | |
pull_request_target: | |
branches: | |
- master | |
types: [opened, reopened, synchronize] | |
permissions: | |
contents: read | |
jobs: | |
update_release_draft: | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: master | |
- name: Setup Poetry | |
uses: Gr1N/setup-poetry@v9 | |
- name: Update poetry.lock | |
run: poetry update --lock | |
- run: echo "TAG_NAME=v$(poetry version -s)" >> $GITHUB_ENV | |
- uses: release-drafter/release-drafter@v6 | |
with: | |
name: ${{ env.TAG_NAME }} | |
tag: ${{ env.TAG_NAME }} | |
publish: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.ORG_TOKEN }} |