update-bot #11
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
name: update-bot | |
on: | |
workflow_dispatch: | |
# Set the schedule, for example every week at 8:00am on Monday | |
schedule: | |
- cron: 0 8 * * 4 | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
lock: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
- run: | | |
echo ``` >> uv_output.md | |
uv lock -U >> uv_output.md 2>&1 | |
echo ``` >> uv_output.md | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.SHELDON_GITHUB_ACTIONS_TOKEN }} | |
commit-message: Update uv lockfile dependencies | |
title: Update dependencies in uv.lock | |
body-path: uv_output.md | |
branch: update-uv | |
base: main | |
labels: install | |
delete-branch: true | |
add-paths: uv.lock |