-
Notifications
You must be signed in to change notification settings - Fork 225
68 lines (59 loc) · 1.59 KB
/
bump-versions.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Bump versions
on:
workflow_dispatch:
inputs:
bump-type:
description: "Bump Type"
required: true
default: "patch"
type: choice
options:
- patch
- minor
- major
jobs:
migrate-db-schema-stage:
name: Bump version
continue-on-error: false
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Bump versions
run: |
BUMP_TYPE=${{ inputs.bump-type }}
echo "Bumping versions to $BUMP_TYPE"
cd agenta-web
npm version $BUMP_TYPE
cd ..
cd agenta-cli
poetry version $BUMP_TYPE
cd ..
cd agenta-backend
poetry version $BUMP_TYPE
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Bump versions
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
branch: bump-versions
delete-branch: true
title: 'Bump versions'
body: |
New version in
- agenta-web
- agenta-backend
- agenta-cli