Skip to content

Commit

Permalink
CI: add lockfile update action to manually trigger for dependabot PRs (
Browse files Browse the repository at this point in the history
…#3647)

I tested it [here](#3646) and it
works if you do the dumb thing and trigger on push, but it seems to not
run actions on unsigned commits by default. I'm hoping that if we
trigger the action manually it'll inherit the clicker's permissions and
re-run the action. In either case, I think whatever we adopt should
supercede the cron job one as we want to never be out of sync between
the pyproject and lockfile.
  • Loading branch information
superlopuh authored Dec 16, 2024
1 parent 91c2790 commit a2505b3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/update-bot.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/update-lockfile-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Update Lockfile Bot

on:
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Set up Python
run: uv python install 3.12

- name: Install the package locally and update lockfile
run: |
# Install all default extras.
XDSL_VERSION_OVERRIDE="0+dynamic" make venv
- uses: EndBug/add-and-commit@v9
with:
add: uv.lock

0 comments on commit a2505b3

Please sign in to comment.