File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 29
29
id : lock_threads
30
30
uses : stacks-network/actions/lock-threads@main
31
31
with :
32
- github-token : ${{ secrets.GH_TOKEN }}
32
+ github-token : ${{ secrets.GITHUB_TOKEN }}
33
33
issue-inactive-days : 7
34
34
pr-inactive-days : 7
35
35
discussion-inactive-days : 7
Original file line number Diff line number Diff line change 12
12
workflow-ttl :
13
13
description : " How many days to keep a successful workflow (default: 30)"
14
14
required : false
15
- default : " 30 "
15
+ default : " 60 "
16
16
failed-workflow-ttl :
17
17
description : " How many days to keep failed workflows (default: 15)"
18
18
required : false
19
- default : " 15 "
19
+ default : " 60 "
20
20
schedule :
21
21
# # Run every day at 00:00:00
22
22
- cron : " 0 0 * * *"
23
23
24
+ permissions :
25
+ actions : write # to delete workflow runs and caches
26
+ contents : read # to access repo contents
27
+
24
28
# # env vars are transferred to composite action steps
25
29
env :
26
30
CACHE_TTL : 7 # # number of days to keep a cache
41
45
id : cleanup
42
46
uses : stacks-network/actions/cleanup/workflows@main
43
47
with :
44
- token : ${{ secrets.GH_TOKEN }}
48
+ token : ${{ secrets.GITHUB_TOKEN }}
45
49
cache-ttl : ${{ inputs.cache-ttl || env.CACHE_TTL}}
46
50
workflow-ttl : ${{ inputs.workflow-ttl || env.WORKFLOW_TTL}}
47
51
failed-workflow-ttl : ${{ inputs.failed-workflow-ttl || env.FAILED_WORKFLOW_TTL }}
You can’t perform that action at this time.
0 commit comments