From aa560ee1ce6e9943ea84e49fdc8294488c67a0c3 Mon Sep 17 00:00:00 2001 From: Tony91590 <91764010+Tony91590@users.noreply.github.com> Date: Sat, 5 Nov 2022 15:53:45 +0100 Subject: [PATCH] Create manual.yml --- .github/workflows/manual.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/manual.yml diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 00000000..94267ecb --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,29 @@ +name: Delete-Old-Workflows + +on: + repository_dispatch: + workflow_dispatch: + +# Cronjob + schedule: + - cron: 0 0 * * 0 + +jobs: + Delete-Old-Workflows: + runs-on: ubuntu-20.04 + steps: + - name: Clone Repository + uses: actions/checkout@v3 + + - name: Set git + run : | + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + sudo timedatectl set-timezone "Asia/Hong_Kong" + + - name: Delete workflow runs + uses: GitRML/delete-workflow-runs@main + continue-on-error: true + with: + retain_days: 1 + keep_minimum_runs: 0