Akamai Property Cleanup #319
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |