Skip to content

update poetry.lock file #37

update poetry.lock file

update poetry.lock file #37

Workflow file for this run

name: bump patch version using poetry
on:
pull_request_target:
types:
- closed
branches:
- main
jobs:
bump-up-version:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.VERSION_DECOIMPACT }}
- name: install python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.4.2
- name: bump version and update template_input.yaml
run: |
git config user.name github-actions
git config user.email [email protected]
poetry version patch
PROJECT_VERSION=$(poetry version --short)
sed -i "1 s/.*/version: $PROJECT_VERSION/" template_input.yaml
- name: commit changes
run: |
PROJECT_VERSION=$(poetry version --short)
git add template_input.yaml
git add pyproject.toml
git commit -m "bump patch version: $PROJECT_VERSION"
git push