Release preparation #1
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 preparation | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release-preparation: | |
name: Release preparation & PR creation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
ref: dev | |
- name: Update version | |
id: version-update | |
uses: TriPSs/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
git-message: "chore(release): {version}" | |
tag-prefix: "" | |
version-file: pyproject.toml | |
version-path: tool.poetry.version | |
create-summary: true | |
skip-ci: false | |
skip-on-empty: false | |
git-push: false | |
- name: missing version output | |
if: ${{ !steps.version-update.outputs.version }} | |
run: > | |
echo "ERROR: Version output is missing from the previous step!" && exit 1 | |
- name: Create Pull Request on dev | |
uses: peter-evans/[email protected] | |
id: cpr-dev | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: release-${{ steps.version-update.outputs.version }} | |
title: "chore: update version to ${{ steps.version-update.outputs.version }} on dev" | |
body: ">To keep the version on dev branch up-to-date, this PR should be merged before merging dev into the main branch in the following PR. Which will trigger pypi release with the updated version.\n\nThis is an automatic PR created by github actions.\nClose and delete branch in case it is not needed." | |
assignees: geode-main | |
reviewers: geode-main |