Make PRs only if a new commit was made. (#18)

Reviewed-on: #18
Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de>
Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
This commit is contained in:
Philipp Horstenkamp 2023-11-21 21:08:22 +01:00 committed by Philipp Horstenkamp
parent e253c6f120
commit 1c9d3972a7
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@ name: Auto Maintenance Cycle
on:
schedule:
- cron: '0 1 * * *'
- cron: 0 1 * * *
workflow_dispatch:
jobs:
@ -27,6 +27,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 }}