Skip to content

Commit

Permalink
Create manual.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony91590 authored Nov 5, 2022
1 parent 6bf7305 commit aa560ee
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit aa560ee

Please sign in to comment.