Skip to content

Commit

Permalink
fix: ensure uv.lock is updated on release
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuswinger committed Sep 2, 2024
1 parent 6f29e30 commit 1cf5a23
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/create-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,33 @@ jobs:
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}

update-uv-lock-file:
runs-on: ubuntu-latest
needs: release-please
if: needs.release-please.outputs.release_created
steps:
- name: Checkout repository
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4

- name: Update uv.lock file
if: ${{ steps.release.outputs.release_created }}
run: |
pipx install uv
cd api
uv lock --upgrade-package api
- name: Set git config to github action user
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git status
- name: Commit and push updated uv.lock file
if: ${{ steps.release.outputs.release_created }}
run: |
git add uv.lock
git commit -m "chore: update version in uv.lock"
git push

0 comments on commit 1cf5a23

Please sign in to comment.