-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (35 loc) · 1.25 KB
/
akamai_property_cleanup.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
38
name: Akamai Property Cleanup
on:
schedule:
- cron: '30 1 * * *'
workflow_dispatch:
jobs:
clear-akamai-properties:
runs-on: ubuntu-20.04
name: Clear Redundant Akamai Properties
steps:
- uses: actions/checkout@v4
- name: 'Install pnpm'
uses: pnpm/action-setup@129abb77bf5884e578fcaf1f37628e41622cc371
with:
version: 8
- name: Install node
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Install dependencies
run: pnpm install
- name: Clear Redundant Properties from Akamai
run: pnpm ts-node scripts/clearProperties.ts
env:
AK_HOST: '${{secrets.AK_HOST}}'
AK_CLIENT_TOKEN: '${{secrets.AK_CLIENT_TOKEN}}'
AK_CLIENT_SECRET: '${{secrets.AK_CLIENT_SECRET}}'
AK_ACCESS_TOKEN: '${{secrets.AK_ACCESS_TOKEN}}'
AK_GROUP_ID: '${{secrets.AK_GROUP_ID}}'
AK_CONTRACT_ID: '${{secrets.AK_CONTRACT_ID}}'
FPJS_CI_DOMAIN: '${{secrets.FPJS_CI_DOMAIN}}'
CF_ZONE_ID: '${{secrets.CF_ZONE_ID}}'
CF_AUTH_TOKEN: '${{secrets.CF_AUTH_TOKEN}}'
TEST_DOMAIN: '${{secrets.TEST_DOMAIN}}'
NOTIFY_EMAIL_ADDRESS: ${{secrets.NOTIFY_EMAIL_ADDRESS}}