Skip to content

Cleanup drafts

Cleanup drafts #657

Workflow file for this run

name: Cleanup drafts
on:
schedule:
- cron: '0 5 * * *'
# push:
# branches:
# - 'master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cleanup
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |-
hub release -f "%T (%S) %n" --include-drafts | grep " (draft)" | awk '{print $1}' | xargs -t -n1 hub release delete || exit 0