Skip to content

[DEBUG]

[DEBUG] #4

Workflow file for this run

name: pre-commit Update
on:
push:
branches:
- "debug-*"
schedule:
- cron: "0 7 1/7 * *" # At 7:00 every 7 days
workflow_dispatch:
jobs:
Copier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
cache: pip
- name: Install pre-commit
run: pip install pre-commit
- name: Run pre-commit's autoupdate
run: |
pre-commit autoupdate
# autoupdate returns 1 if any changes were made
echo "Ignore exit code"
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
commit-message: "chore: :robot: pre-commit update"
title: "[AUTO] pre-commit update"
branch: auto-pre-commit-update
delete-branch: true
labels: chore
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"