2023-12-21 18:18:50 +00:00
|
|
|
name: Pre-commit auto-update
|
|
|
|
|
|
|
|
on:
|
|
|
|
# every day at midnight
|
|
|
|
schedule:
|
|
|
|
- cron: "0 3 * * 2"
|
|
|
|
# on demand
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
permissions:
|
2023-12-21 19:12:23 +00:00
|
|
|
contents: read
|
2023-12-21 18:18:50 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
auto-update:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- uses: actions/setup-python@v5
|
2023-12-23 08:08:55 +00:00
|
|
|
with:
|
|
|
|
python-version: "3.11"
|
|
|
|
|
2023-12-21 18:18:50 +00:00
|
|
|
|
|
|
|
- name: Install pre-commit
|
|
|
|
run: pip install pre-commit
|
|
|
|
|
|
|
|
- name: Run auto-update
|
|
|
|
run: pre-commit autoupdate
|
|
|
|
|
|
|
|
- name: Run pre-commit
|
|
|
|
run: pre-commit run --all-files
|
|
|
|
|
2024-02-05 03:59:04 +00:00
|
|
|
- uses: peter-evans/create-pull-request@v6
|
2023-12-21 18:18:50 +00:00
|
|
|
with:
|
2023-12-21 18:53:09 +00:00
|
|
|
token: ${{ secrets.REPO_SCOPED_TOKEN }}
|
2023-12-21 18:18:50 +00:00
|
|
|
add-paths: .pre-commit-config.yaml
|
2023-12-21 18:39:45 +00:00
|
|
|
labels: |
|
|
|
|
Tech maintenance
|
2024-01-30 06:04:41 +00:00
|
|
|
Dependencies
|
2023-12-21 18:53:09 +00:00
|
|
|
branch: update/pre-commit-hooks
|
|
|
|
title: Update pre-commit hooks
|
2023-12-21 18:18:50 +00:00
|
|
|
commit-message: "chore: update pre-commit hooks"
|
2023-12-21 19:13:52 +00:00
|
|
|
committer: Freqtrade Bot <noreply@github.com>
|
2023-12-21 18:18:50 +00:00
|
|
|
body: Update versions of pre-commit hooks to latest version.
|
2023-12-21 18:53:09 +00:00
|
|
|
delete-branch: true
|