Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
add workflow to remove older workflow runs
Browse files Browse the repository at this point in the history
  • Loading branch information
bodsch committed Oct 17, 2023
1 parent e6cbf58 commit 393de6d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/clean-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---

name: delete workflow runs

on:
schedule:
- cron: "10 4 * * 0"
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug

jobs:
delete-workflow-runs:
runs-on: ubuntu-latest
name: delete old workflow runs
steps:
- name: Delete workflow runs
uses: MajorScruffy/delete-old-workflow-runs@v0.3.0
with:
repository: bodsch/ansible-openvpn
older-than-seconds: 2592000 # remove all workflow runs older than 30 day
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 393de6d

Please sign in to comment.