armbian-build/.github/workflows/clean-workflow-logs.yml
dependabot[bot] b762945378 build(deps): bump igorjs/gh-actions-clean-workflow from 6 to 7
Bumps [igorjs/gh-actions-clean-workflow](https://github.com/igorjs/gh-actions-clean-workflow) from 6 to 7.
- [Release notes](https://github.com/igorjs/gh-actions-clean-workflow/releases)
- [Changelog](https://github.com/igorjs/gh-actions-clean-workflow/blob/main/CHANGELOG.md)
- [Commits](https://github.com/igorjs/gh-actions-clean-workflow/compare/v6...v7)

---
updated-dependencies:
- dependency-name: igorjs/gh-actions-clean-workflow
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-03 19:36:42 +01:00

28 lines
711 B
YAML

name: Clean Workflow Logs
on:
schedule:
- cron: "0 0 * * 1" # Runs "At 00:00 on Monday." (see https://crontab.guru)
workflow_dispatch:
inputs:
runs_older_than:
description: "The amount of days old to delete"
default: "21"
required: false
env:
SCHEDULED_RUNS_OLDER_THAN: "21"
SCHEDULED_RUNS_TO_KEEP: "0"
jobs:
clean-logs:
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: igorjs/gh-actions-clean-workflow@v7
with:
runs_older_than: ${{ github.event.inputs.runs_older_than || env.SCHEDULED_RUNS_OLDER_THAN }}
runs_to_keep: ${{ github.event.inputs.runs_to_keep || env.SCHEDULED_RUNS_TO_KEEP }}