* Restore permission to make script work We need to rework this, but until then things has to work. * Permission issuers * We don't try to cancel previous as it doesn't work * Update * Renaming, remove deprecated * Add comments * Prevent running scorecard on forks * Update
22 lines
557 B
YAML
22 lines
557 B
YAML
name: Clean Workflow Logs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
days_old:
|
|
description: "The amount of days old to delete"
|
|
default: "7"
|
|
required: false
|
|
|
|
jobs:
|
|
clean-logs:
|
|
if: ${{ github.repository_owner == 'Armbian' }}
|
|
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 }}
|