From bed612c3222f48fafb0d526d283f1b186b33ea11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 20 Oct 2022 17:27:52 +0200 Subject: [PATCH] Delete old workflows runs --- .../workflows/delete-old-workflows-run.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/delete-old-workflows-run.yaml diff --git a/.github/workflows/delete-old-workflows-run.yaml b/.github/workflows/delete-old-workflows-run.yaml new file mode 100644 index 0000000000..f050c978df --- /dev/null +++ b/.github/workflows/delete-old-workflows-run.yaml @@ -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 }}