Skip to content

Commit

Permalink
Delete old workflows runs
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 20, 2022
1 parent 40be460 commit bed612c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/delete-old-workflows-run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Continuous integration

on:
schedule:
- cron: '0 0 * * *'

env:
HAS_SECRETS: ${{ secrets.HAS_SECRETS }}

jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 25
name: Continuous integration
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')"

steps:
- name: Delete old workflow runs
uses: MajorScruffy/delete-old-workflow-runs@v0.3.0
with:
repository: mapfish/mapfish-print # replace this with your own repository
older-than-seconds: 43200000
#workflow: .github/workflows/main.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bed612c

Please sign in to comment.