1
0
mirror of https://github.com/j178/prek.git synced 2026-04-25 02:11:36 +02:00
Files
prek/.github/workflows/sync-identify.yml
Jo b6c591dbbc Reimplement @j178/prek npm package (#1973)
Reimplements the `@j178/prek` npm package.

The package is now split into a dependency-free wrapper package plus
platform-specific `optionalDependencies`, so the npm package no longer
ships cargo-dist installer glue or extra runtime dependencies.

Closes #1969 
Closes #1918
Closes #1784

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-21 18:44:40 +08:00

43 lines
1.2 KiB
YAML

name: "Sync pre-commit identify tags"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
permissions: {}
env:
UV_VERSION: "0.11.6"
jobs:
sync:
if: github.repository == 'j178/prek'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
version: ${{ env.UV_VERSION }}
enable-cache: true
- name: "Sync identify tags"
run: uv run --upgrade gen.py
working-directory: ./crates/prek-identify
- name: "Create Pull Request"
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
commit-message: "Sync latest identify tags"
add-paths: |
crates/prek-identify/src/tags.rs
crates/prek-identify/gen.py.lock
branch: "sync-identify-tags"
title: "Sync latest identify tags"
body: "Automated update for identify tags."
base: "master"
draft: true