From 947ed41195a1e6633b355a8554dbb40a7ea65f94 Mon Sep 17 00:00:00 2001 From: larsevj Date: Wed, 12 Feb 2025 10:38:33 +0100 Subject: [PATCH] Add workflow for updating lockfile weekly --- .github/workflows/update_lockfile.yml | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/update_lockfile.yml diff --git a/.github/workflows/update_lockfile.yml b/.github/workflows/update_lockfile.yml new file mode 100644 index 00000000000..fb0c8d63aa1 --- /dev/null +++ b/.github/workflows/update_lockfile.yml @@ -0,0 +1,36 @@ +name: update-lockfile + +on: + workflow_dispatch: + schedule: + - cron: 0 8 * * 1 + +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 --upgrade 2>&1 | tee -a uv_output.md + echo "\`\`\`" >> uv_output.md + + - name: Create pull request + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: Update uv lockfile + title: Update uv lockfile + body-path: uv_output.md + branch: update-uv-lockfile + base: main + labels: release-notes:dependency + delete-branch: true + add-paths: uv.lock