Skip to content

Commit 10eff18

Browse files
authored
Merge pull request #197 from ministryofjustice/delius-core/NIT-1111/expiry_schedule
cron schedule added for user expiry
2 parents 2eaa406 + 540dab1 commit 10eff18

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "LDAP: User expiry Cron"
2+
on:
3+
schedule:
4+
- cron: "30 3 * * *"
5+
6+
jobs:
7+
expire-users:
8+
permissions:
9+
id-token: write
10+
contents: read
11+
strategy:
12+
matrix:
13+
environment: ["dev"]
14+
uses: ./.github/workflows/ldap-user-expiry.yaml
15+
with:
16+
environment: ${{matrix.environment}}-preapproved

.github/workflows/ldap-user-expiry.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- "dev"
1010
- "test"
1111
workflow_call:
12+
inputs:
13+
environment:
14+
type: string
1215

1316
jobs:
1417
deploy:

0 commit comments

Comments
 (0)