From a8fde4cb94be088d47041c89df1f86df69806fdf Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Mon, 20 Nov 2023 11:28:03 +0100 Subject: [PATCH 1/2] Made part of the maintance action optional. --- .gitea/workflows/maintenance.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/maintenance.yaml b/.gitea/workflows/maintenance.yaml index 9ebe4fa..86993fd 100644 --- a/.gitea/workflows/maintenance.yaml +++ b/.gitea/workflows/maintenance.yaml @@ -2,7 +2,7 @@ name: Auto Maintenance Cycle on: schedule: - - cron: '0 1 * * *' + - cron: 0 1 * * * workflow_dispatch: jobs: @@ -17,6 +17,7 @@ jobs: shell: bash - run: pre-commit autoupdate shell: bash + - run: git status | grep test - name: Commit uses: stefanzweifel/git-auto-commit-action@v5 with: @@ -27,6 +28,7 @@ jobs: - 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: ./ with: token: ${{ secrets.REPO_TOKEN }} -- 2.47.2 From 8619177ce015d2b7a404e640d9b0b9e7e69d9878 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Tue, 21 Nov 2023 21:07:03 +0100 Subject: [PATCH 2/2] Removed a test line. --- .gitea/workflows/maintenance.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitea/workflows/maintenance.yaml b/.gitea/workflows/maintenance.yaml index 86993fd..2de1609 100644 --- a/.gitea/workflows/maintenance.yaml +++ b/.gitea/workflows/maintenance.yaml @@ -17,7 +17,6 @@ jobs: shell: bash - run: pre-commit autoupdate shell: bash - - run: git status | grep test - name: Commit uses: stefanzweifel/git-auto-commit-action@v5 with: -- 2.47.2