File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Update balatrobot dependency
2+ on :
3+ repository_dispatch :
4+ types : [balatrobot_release]
5+
6+ permissions :
7+ contents : write
8+ pull-requests : write
9+
10+ jobs :
11+ update-dependency :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Extract version from payload
17+ id : version
18+ run : |
19+ echo "VERSION=${{ github.event.client_payload.version }}" >> $GITHUB_OUTPUT
20+
21+ - name : Install uv
22+ uses : astral-sh/setup-uv@v5
23+ with :
24+ enable-cache : true
25+ cache-dependency-glob : " uv.lock"
26+
27+ - name : Update balatrobot dependency
28+ run : |
29+ # Update exact version in pyproject.toml
30+ sed -i 's/balatrobot>=.*/balatrobot==${{ steps.version.outputs.VERSION }}/' pyproject.toml
31+ # Verify the change
32+ grep balatrobot pyproject.toml
33+
34+ - name : Update lock file
35+ run : uv sync
36+
37+ - name : Create Pull Request
38+ uses : peter-evans/create-pull-request@v6
39+ with :
40+ token : ${{ secrets.GITHUB_TOKEN }}
41+ commit-message : " chore(deps): update balatrobot to ${{ steps.version.outputs.VERSION }}"
42+ title : " chore(deps): bump balatrobot to ${{ steps.version.outputs.VERSION }}"
43+ body : |
44+ Automatic dependency update after balatrobot release `${{ steps.version.outputs.VERSION }}`
45+
46+ Updated:
47+ - `pyproject.toml`: balatrobot pinned to `${{ steps.version.outputs.VERSION }}`
48+ - `uv.lock`: regenerated with new dependencies
49+ branch : " deps/balatrobot-${{ steps.version.outputs.VERSION }}"
50+ delete-branch : true
You can’t perform that action at this time.
0 commit comments