Add a repository prune
This commit is contained in:
1 parent
babd654d88
commit
52eaf1a0fd
1 file changed
+16
@@ -0,0 +1,16 @@
|
||||
name: Prune Workflows
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
native:
|
||||
name: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Delete old workflow runs
|
||||
uses: MajorScruffy/delete-old-workflow-runs@v0.2.0
|
||||
with:
|
||||
repository: ${{ github.repository }}
|
||||
older-than-seconds: 15552000 # remove all workflow runs older than 6 months
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in new issue
Block a user