-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1386 from Agenta-AI/publish-new-release
Bump versions
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |