Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/update-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Auto-update CI tools regularly

name: CI auto-update

on:
schedule:
# Run weekly
- cron: '23 5 * * 0'
workflow_dispatch:

jobs:
ci_auto_update:
name: CI auto-update
runs-on: ubuntu-latest
steps:
# Setup pre-commit
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: 3.10.4
- name: Install pre-commit
run: pip install pre-commit

# Run update
- name: Run pre-commit autoupdate
run: pre-commit autoupdate

# Create pull request
- name: Create pull-request
id: cpr
uses: peter-evans/create-pull-request@v8
with:
branch: update-ci/pre-commit-autoupdate
delete-branch: true
title: Auto-update pre-commit hooks
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
commit-message: Auto-update pre-commit hooks
labels: CI
- name: Check outputs
if: ${{ steps.cpr.pull-request-number }}
run: echo "Opened pull request ${{ steps.cpr.outputs.pull-request-number }} - ${{ steps.cpr.outputs.pull-request-url }}"
Loading