mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
---
|
|
# yaml-language-server: https://json.schemastore.org/github-workflow.json
|
|
name: Pre-commit autoupdate
|
|
|
|
on:
|
|
schedule:
|
|
# At 04:00 on Monday and Thursday.
|
|
- cron: "0 4 * * 1,4"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
auto-update:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
|
|
|
|
- run: pip install pre-commit && pre-commit autoupdate
|
|
|
|
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: update/pre-commit-hooks
|
|
title: "chore: update pre-commit hooks"
|
|
commit-message: "chore: update pre-commit hooks"
|
|
body: Update versions of pre-commit hooks to latest version.
|