Skip to content

Commit

Permalink
Merge pull request #1386 from Agenta-AI/publish-new-release
Browse files Browse the repository at this point in the history
Bump versions
  • Loading branch information
aakrem authored Feb 18, 2024
2 parents 866f910 + c4ede6c commit d8460ad
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/bump-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
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: 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:
token: ${{ secrets.TOKEN }}

0 comments on commit d8460ad

Please sign in to comment.