Skip to content

nightly artifacts cleanup #630

nightly artifacts cleanup

nightly artifacts cleanup #630

name: "nightly artifacts cleanup"
on:
schedule:
- cron: "0 1 * * *" # every night at 1 am UTC
workflow_dispatch:
jobs:
delete-artifacts:
runs-on: ubuntu-latest
if: "!github.event.pull_request.draft"
steps:
- uses: kolpav/purge-artifacts-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
expire-in: 1day # Set this to 0 to delete all artifacts