Compare commits
10 Commits
philipp-pa
...
aa95cf4263
Author | SHA1 | Date | |
---|---|---|---|
aa95cf4263 | |||
19259737af | |||
ac36a7ab1f | |||
0780c1e8ab | |||
9d9dc1e822 | |||
82e4d66d61 | |||
01deab89cd | |||
28b0ab9f02 | |||
0c37ffc7c7 | |||
|
9c79fe03b0 |
@@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: pi
|
runs-on: pi
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v6
|
||||||
- run: pip install pre-commit
|
- run: pip install pre-commit
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Pre Commit
|
- name: Pre Commit
|
||||||
|
@@ -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 }}
|
|
@@ -1,7 +1,7 @@
|
|||||||
exclude: ^node_modules/
|
exclude: ^node_modules/
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v5.0.0
|
rev: v6.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
exclude: (.txt$|.ipynb$|README.md$|readme.mde$)
|
exclude: (.txt$|.ipynb$|README.md$|readme.mde$)
|
||||||
@@ -25,7 +25,7 @@ repos:
|
|||||||
args: [--branch, main]
|
args: [--branch, main]
|
||||||
|
|
||||||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
||||||
rev: v2.14.0
|
rev: v2.15.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pretty-format-ini
|
- id: pretty-format-ini
|
||||||
args: [--autofix]
|
args: [--autofix]
|
||||||
|
1028
package-lock.json
generated
1028
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
8
renovate.json
Normal file
8
renovate.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"local>server/Renovate-Template:renovate.json",
|
||||||
|
"config:recommended",
|
||||||
|
":automergeLinters"
|
||||||
|
]
|
||||||
|
}
|
Reference in New Issue
Block a user