forked from hmcts/auto-shutdown
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.15 KB
/
housekeeping_aks_issuejson.yaml
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
38
39
40
41
42
43
44
45
46
name: Housekeeping Shutdown form
run-name: Housekeeping json file
on:
schedule:
- cron: '00 17 * * *'
workflow_dispatch:
env:
GH_TOKEN: ${{ secrets.PLATFORM_USER_TOKEN }}
jobs:
parse:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'
token: ${{ env.GH_TOKEN }}
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install python-dateutil
run: |
pip3 install python-dateutil
- name: Delete old entries
continue-on-error: true
run: |
python ./scripts/housekeeping.py
- name: Commit to master
continue-on-error: true
if: env.JSON_FILE_EXISTS == 'true'
run: |
git config user.name hmcts-platform-operations
git config user.email [email protected]
git add .
git commit -m "housekeeping"
git push
- name: Close Stale Issues
uses: actions/[email protected]
with:
days-before-stale: 7
only-labels: Error in form