Skip to content

Prek auto-update

Prek auto-update #1

name: Prek auto-update
on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
prek-auto-update:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Check out repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Install prek
uses: j178/prek-action@564dda4cfa5e96aafdc4a5696c4bf7b46baae5ac # v1.1.0
with:
install-only: true
- name: Run prek auto-update
run: prek auto-update --freeze --jobs "$(nproc)"
- uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v3
- uses: j178/prek-action@564dda4cfa5e96aafdc4a5696c4bf7b46baae5ac # v1.1.0
continue-on-error: true
- name: Create Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: bot/prek-autoupdate
delete-branch: true
title: Auto-update prek hooks
commit-message: Auto-update prek hooks
body: |
Update tool versions in prek configs to latest version.
labels: |
automated
dependencies