Skip to content

Merge branch 'main' of https://github.com/borosbence/borosbence.githu… #9

Merge branch 'main' of https://github.com/borosbence/borosbence.githu…

Merge branch 'main' of https://github.com/borosbence/borosbence.githu… #9

name: Clean Deployment Logs
on:
workflow_dispatch:
inputs:
days_old:
description: "The amount of days old to delete"
default: "7"
required: false
jobs:
cleanup:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: strumwolf/delete-deployment-environment@v2
- with:
token: ${{ secrets.GITHUB_TOKEN }}
days_old: ${{ github.event.inputs.days_old }}
environment: github-pages
onlyRemoveDeployments: true