From e6d9991e143b9b068ddb71b2148fd1d3a3dfca67 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Tue, 21 May 2024 03:04:31 +0200 Subject: [PATCH] Removed maintance on push + added lint. (#32) Reviewed-on: https://git.horstenkamp.eu/Philipp/gitea-act-create-pr/pulls/32 Co-authored-by: Philipp Horstenkamp Co-committed-by: Philipp Horstenkamp --- .gitea/workflows/lint.yaml | 18 ++++++++++++++++++ .gitea/workflows/maintenance.yaml | 4 +--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .gitea/workflows/lint.yaml diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml new file mode 100644 index 0000000..2650708 --- /dev/null +++ b/.gitea/workflows/lint.yaml @@ -0,0 +1,18 @@ +name: Lint + +on: + push: + +jobs: + auto-update: + name: pre-commit Autoupdate + runs-on: python + env: + SPECIFIC_BRANCH: chore/update-pre-commit + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + - run: pip install pre-commit + shell: bash + - name: pre-commit + run: SKIP=no-commit-to-branch pre-commit run -a diff --git a/.gitea/workflows/maintenance.yaml b/.gitea/workflows/maintenance.yaml index fe78dfc..f5f39ed 100644 --- a/.gitea/workflows/maintenance.yaml +++ b/.gitea/workflows/maintenance.yaml @@ -1,14 +1,12 @@ name: Auto Maintenance Cycle on: - push: schedule: - cron: 0 0 * * * - workflow_dispatch: jobs: auto-update: - name: pre-commit Autoupdate + name: pre-commit runs-on: pi64 env: SPECIFIC_BRANCH: chore/update-pre-commit