-
Notifications
You must be signed in to change notification settings - Fork 45
41 lines (36 loc) · 1.14 KB
/
patch-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Patch release 🚀
on:
workflow_dispatch:
jobs:
bump-version:
outputs:
version: ${{ steps.get-version.outputs.version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.2
virtualenvs-create: false
virtualenvs-in-project: false
installer-parallel: true
- name: Bump version
run: poetry version prerelease
- name: Get version
id: get-version
run: echo version=`poetry version -s` >> "$GITHUB_OUTPUT"
- name: Print varaibles
run: |
echo Version: ${{ steps.get-version.outputs.version }}
- uses: EndBug/add-and-commit@v9
with:
author_name: "Neo4j-GenAI GitHub Action"
author_email: "[email protected]"
message: "Bump version to ${{ steps.get-version.outputs.version }}"
add: "pyproject.toml"
tag: "${{ steps.get-version.outputs.version }}"