Skip to content

Update balatrobot dependency #3

Update balatrobot dependency

Update balatrobot dependency #3

name: Update balatrobot dependency
on:
repository_dispatch:
types: [balatrobot_release]
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-dependency:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Extract version from payload
id: version
run: |
echo "VERSION=${{ github.event.client_payload.version }}" >> $GITHUB_OUTPUT
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Update balatrobot dependency
run: |
uv add balatrobot==${{ steps.version.outputs.VERSION }}
# Verify the change
grep balatrobot pyproject.toml
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore(deps): update balatrobot to ${{ steps.version.outputs.VERSION }}"
title: "chore(deps): bump balatrobot to ${{ steps.version.outputs.VERSION }}"
body: |
Automatic dependency update after balatrobot release `${{ steps.version.outputs.VERSION }}`
Updated:
- `pyproject.toml`: balatrobot pinned to `${{ steps.version.outputs.VERSION }}`
- `uv.lock`: regenerated with new dependencies
branch: "deps/balatrobot-${{ steps.version.outputs.VERSION }}"
delete-branch: true