Rename all workflow files to follow a consistent action-oriented naming pattern similar to armbian.github.io: - adjust-maintainers.yml → sync-maintainers-status.yml - clean-workflow-logs.yml → cleanup-workflow-logs.yml - forked-helper.yml → help-forked.yml - issue-welcome-first-time.yml → welcome-issue-first-time.yml - labels-from-yml.yml → sync-labels.yml - merge-announce.yml → announce-merge.yml - open-jira-ticket.yml → create-jira-ticket.yml - pr-announce.yml → announce-pr.yml - pr-auto-labeler.yml → auto-label-pr.yml - pr-build-artifacts.yml → build-pr-artifacts.yml - pr-check-pictures.yml → check-pr-pictures.yml - pr-kernel-security-analysis.yml → analyze-pr-kernel-security.yml - pr-label-on-approved.yml → label-pr-on-approval.yml - pr-lint-scripts.yml → lint-pr-scripts.yml - pr-review-listener.yml → listen-pr-review.yml - pr-welcome-first-time.yml → welcome-pr-first-time.yml - rewrite-kernel-configs.yml → rewrite-kernel-config-files.yml - update-board-list.yml → sync-board-list.yml - update-tools.yml → sync-tools.yml This makes the workflow names more descriptive and consistent with the action verb first, followed by the target object.
28 lines
711 B
YAML
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 }}
|