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: on:
schedule: schedule:
- cron: '0 1 * * *' - cron: 0 1 * * *
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@ -17,6 +17,7 @@ jobs:
shell: bash shell: bash
- run: pre-commit autoupdate - run: pre-commit autoupdate
shell: bash shell: bash
- run: git status | grep test
- name: Commit - name: Commit
uses: stefanzweifel/git-auto-commit-action@v5 uses: stefanzweifel/git-auto-commit-action@v5
with: with:
@ -27,6 +28,7 @@ jobs:
- name: Generate Date - name: Generate Date
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Create an PR action - name: Create an PR action
if: steps.auto-commit-action.outputs.changes_detected == 'true'
uses: ./ uses: ./
with: with:
token: ${{ secrets.REPO_TOKEN }} token: ${{ secrets.REPO_TOKEN }}