Clean Workflow Logs #13
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
name: Clean Workflow Logs | |
on: | |
workflow_dispatch: | |
inputs: | |
# days_old: | |
# description: "The amount of days old to delete" | |
# default: "7" | |
# required: false | |
dry: | |
description: "Dry run" | |
default: "false" | |
required: false | |
jobs: | |
clean-logs: | |
runs-on: ubuntu-latest | |
steps: | |
# - uses: igorjs/gh-actions-clean-workflow@v1 | |
# with: | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# owner: ${{ github.repository_owner }} | |
# repo: ${{ github.event.repository.name }} | |
# days_old: ${{ github.event.inputs.days_old }} | |
- name: Clean workflow runs | |
uses: dmvict/[email protected] | |
with: | |
token: ${{ secrets.MCKIT_GITHUB_TOKEN }} | |
save_period: 30 | |
save_min_runs_number: 10 | |
dry: ${{ github.event.inputs.dry }} |