Made part of the maintance action optional.

This commit is contained in:
Philipp Horstenkamp 2023-11-20 11:28:03 +01:00
parent e253c6f120
commit a8fde4cb94
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4

View File

@ -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 }}