From 29e4a79416f5de041fad492be7ffc5cb4ad502e8 Mon Sep 17 00:00:00 2001 From: Sasha Lopoukhine Date: Thu, 19 Dec 2024 14:46:54 +0100 Subject: [PATCH] add back bot --- .github/workflows/remake-lockfile.yml | 39 +++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/remake-lockfile.yml diff --git a/.github/workflows/remake-lockfile.yml b/.github/workflows/remake-lockfile.yml new file mode 100644 index 0000000000..3795e06a34 --- /dev/null +++ b/.github/workflows/remake-lockfile.yml @@ -0,0 +1,39 @@ +name: Remake UV Lockfile + +on: + workflow_dispatch: + # Set the schedule, every week at 8:00am on Monday + 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@v3 + + - run: | + rm uv.lock + echo "\`\`\`" > uv_output.md + make venv &>> 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: "CI: Update uv lockfile" + title: "CI: Update uv lockfile" + body-path: uv_output.md + branch: ci/update-uv + base: main + labels: CI + delete-branch: true + add-paths: uv.lock + assignees: math-fehr, georgebisbas, superlopuh