From a8fde4cb94be088d47041c89df1f86df69806fdf Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Mon, 20 Nov 2023 11:28:03 +0100 Subject: [PATCH] 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 }}