Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# **what?** | ||
# - delete branches left over from automation and testing | ||
# - remove draft releases from release testing | ||
# - mark old PRs and issues as stale | ||
# - close PRs and issues marked stale | ||
# | ||
# **why?** | ||
# - remove clutter from the repository | ||
# - allow automated processes to leave artifacts for debugging and troubleshooting | ||
# | ||
# **when?** | ||
# - weekly based on DBT_WEEKLY_MAINTENANCE_SCHEDULE | ||
# - manually | ||
# | ||
# Runs on Saturday to avoid running at the same time as production release and breaking the release. | ||
name: "Weekly maintenance" | ||
on: | ||
schedule: | ||
- cron: ${{ vars.DBT_WEEKLY_MAINTENANCE_SCHEDULE }} | ||
workflow_dispatch: | ||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
jobs: | ||
repository-cleanup: | ||
uses: dbt-labs/actions/.github/workflows/repository-cleanup.yml@main | ||
secrets: inherit | ||
stale-issues: | ||
uses: dbt-labs/actions/.github/workflows/stale-bot-matrix.yml@main |