Skip to content

.github/workflows/prune.yml #186

.github/workflows/prune.yml

.github/workflows/prune.yml #186

Workflow file for this run

on:
schedule:
- cron: '12 5 * * *'
workflow_dispatch:
jobs:
prune-builder:
name: Prune stale drafts and prereleases
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Code Checkout
uses: actions/checkout@v3
- name: Prune any drafts older than 20 days
run: . ./.ci/load-ci.sh && github_draft_release_prune "20"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Only retain last 10 prereleases
run: . ./.ci/load-ci.sh && github_release_prune_retain "prerelease" "10"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}