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

Merged
Philipp merged 2 commits from opt-pr into main 2023-11-21 21:08:25 +01:00

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:
@ -27,6 +27,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 }}