2 Commits

Author SHA1 Message Date
0c37ffc7c7 Add renovate.json
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m0s
2025-05-10 08:53:56 +00:00
9c79fe03b0 Delete .gitea/workflows/maintenance.yaml (#22)
All checks were successful
Lint / pre-commit Linting (push) Successful in 59s
Reviewed-on: #22
2025-05-10 10:44:20 +02:00
2 changed files with 3 additions and 57 deletions

View File

@ -1,57 +0,0 @@
name: Auto Maintenance Cycle
on:
push:
paths:
- .gitea/workflows/maintenance.yaml
schedule:
- cron: 0 3 2 * *
workflow_dispatch:
jobs:
auto-update:
name: pre-commit Autoupdate
runs-on: pi64
env:
SPECIFIC_BRANCH: chore/update-pre-commit
steps:
- uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.REPO_TOKEN }}
- name: Attempt to checkout specific branch
uses: actions/checkout@v4
with:
ref: ${{ env.SPECIFIC_BRANCH }}
token: ${{ secrets.REPO_TOKEN }}
continue-on-error: true
- uses: actions/setup-python@v4
- run: pip install pre-commit
shell: bash
- run: pre-commit autoupdate
shell: bash
- name: Test pre-commit
run: SKIP=no-commit-to-branch pre-commit run -a
- name: Commit
id: auto-commit-action
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'chore: update pre-commit hooks'
branch: ${{ env.SPECIFIC_BRANCH }}
create_branch: true
commit_user_name: runner
commit_user_email: git@horstenkamp.eu
commit_author: runner <git@horstenkamp.eu>
- name: Generate Date
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Create an PR action
if: steps.auto-commit-action.outputs.changes_detected == 'true'
uses: https://git.horstenkamp.eu/Philipp/gitea-act-create-pr@main
with:
token: ${{ secrets.REPO_TOKEN }}
branch: ${{ env.SPECIFIC_BRANCH }}
title: Updates to the pre-commit action created at ${{ env.CURRENT_DATE }}
body: Update to the pre-commit action.
base_branch: ${{gitea.ref_name}}
assignees: ${{ vars.ASSIGNEES }}
reviewers: ${{ vars.REVIEWERS }}

3
renovate.json Normal file
View File

@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}