Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .github/workflows/clean_up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
default: false
schedule:
- cron: "*/5 * * * *"
- cron: "0 0 * * *"
pull_request_target:
types:
- closed
Expand Down Expand Up @@ -177,7 +178,7 @@ jobs:

pr_cleanup:
name: Clean up documentation previews
if: github.event_name == 'pull_request_target' || github.event_name == 'schedule'
if: github.event_name == 'pull_request_target' || github.event.schedule == '0 0 * * *'
runs-on: ubuntu-latest

permissions:
Expand Down Expand Up @@ -206,12 +207,6 @@ jobs:
run: |
set -euo pipefail

# Only run once per day (at midnight UTC)
if [ "$(date -u +%H%M)" != "0000" ]; then
echo "Skipping stale PR cleanup."
exit 0
fi

git config --global user.name "cuda-quantum-bot"
git config --global user.email "cuda-quantum-bot@users.noreply.github.com"
git config pull.rebase true
Expand Down
Loading