generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 40
37 lines (31 loc) · 1.15 KB
/
log_management.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Log Management
on:
workflow_dispatch:
schedule:
- cron: "5 3 * * *"
jobs:
run_log_management:
runs-on: ubuntu-latest
name: Run log management steps
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Workflow Housekeeper - workflows NOT in default branch
uses: JosiahSiegel/workflow-housekeeper@731cc20bb613208b34efb6ac74aab4ba147abb50
## DevSecOps - Aquia (Replace) - uses: ./.github/actions/workflow-housekeeper
env:
GITHUB_TOKEN: ${{ secrets.LOG_MANAGEMENT_TOKEN }}
with:
ignore-branch-workflows: true
retention-time: '2 days'
retain-run-count: 0
dry-run: false
- name: Workflow Housekeeper - workflows in default branch
uses: JosiahSiegel/workflow-housekeeper@731cc20bb613208b34efb6ac74aab4ba147abb50
## DevSecOps - Aquia (Replace) - uses: ./.github/actions/workflow-housekeeper
env:
GITHUB_TOKEN: ${{ secrets.LOG_MANAGEMENT_TOKEN }}
with:
ignore-branch-workflows: false
retention-time: '2 months'
retain-run-count: 1
dry-run: false