File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches : [main]
4+ pull_request :
5+ branches : [main]
6+ workflow_dispatch :
7+ workflow_run :
8+ workflows : ["Code Quality"]
9+ types :
10+ - completed
11+ branches : [main]
12+ permissions :
13+ contents : write
14+ pull-requests : write
15+ name : Release tag
16+ jobs :
17+ release-please :
18+ runs-on : ubuntu-latest
19+ if : github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
20+ steps :
21+ - uses : googleapis/release-please-action@v4
22+ id : release
23+ with :
24+ token : ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
25+ release-type : python
26+ - uses : actions/checkout@v4
27+ if : ${{ steps.release.outputs.release_created }}
28+ with :
29+ fetch-depth : 0
30+ ref : main
31+ - name : Install uv
32+ if : ${{ steps.release.outputs.release_created }}
33+ uses : astral-sh/setup-uv@v5
34+ - name : Configure Git
35+ if : ${{ steps.release.outputs.release_created }}
36+ run : |
37+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
38+ git config --local user.name "github-actions[bot]"
39+ - name : Update lock file
40+ if : ${{ steps.release.outputs.release_created }}
41+ run : uv lock
42+ - name : Commit and push updated lock file
43+ if : ${{ steps.release.outputs.release_created }}
44+ run : |
45+ if [[ -n $(git status --porcelain uv.lock) ]]; then
46+ git add uv.lock
47+ git commit -m "chore(deps): update uv.lock for version ${{ steps.release.outputs.version }}"
48+ git push
49+ else
50+ echo "No changes to uv.lock"
51+ fi
You can’t perform that action at this time.
0 commit comments