Skip to content

Version Bump

Version Bump #56

Workflow file for this run

name: Version Bump
on:
create:
branches:
workflow_dispatch:
jobs:
makepr:
name: make pr
runs-on: ubuntu-latest
if: ${{ contains(github.ref, 'release/') }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install poetry
run: pip install poetry
- name: Bump version
run: git branch --show-current | sed 's|release/||' | xargs poetry version | { printf '::set-output name=PR_TITLE::'; cat; }
id: bump
- name: Bump version 2
run: git branch --show-current | sed 's|release/||' | xargs -I {} echo '__version__ = "{}"' > pams/version.py
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
author: GitHub Actions <[email protected]>
commit-message: ${{ steps.bump.outputs.PR_TITLE }}
delete-branch: true
branch-suffix: short-commit-hash
title: ${{ steps.bump.outputs.PR_TITLE }}