From 6856ff8e3223f845cd4eb91215767590684bb4fc Mon Sep 17 00:00:00 2001 From: Ryan Clayton Date: Fri, 16 Jan 2026 14:02:26 -0700 Subject: [PATCH 1/3] [MWPW-182131] Automatic invalidating CDN cache (#659) * Adding new repo EDGERC secret * Adding Unity workflow CP prod and stage codes Resolves: [MWPW-182131](https://jira.corp.adobe.com/browse/MWPW-182131) **Test URLs:** - Before: https://main--unity--adobecom.aem.page/?martech=off - After: https://MWPW-182131--unity--adobecom.aem.page/?martech=off Co-authored-by: Ryan Clayton --- .github/workflows/clear-cache.yml | 57 +++++++++++++++++++++++++++++++ .github/workflows/release.yml | 27 +++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 .github/workflows/clear-cache.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/clear-cache.yml b/.github/workflows/clear-cache.yml new file mode 100644 index 000000000..4430d7d32 --- /dev/null +++ b/.github/workflows/clear-cache.yml @@ -0,0 +1,57 @@ +name: Clear Akamai Cache + +on: + workflow_call: + inputs: + cpCode: + description: 'CP Code' + required: true + type: string + network: + description: 'Network' + required: true + type: string + command: + description: 'Command' + required: true + type: string + + workflow_dispatch: + inputs: + cpCode: + description: 'CP Code: Prod - 1680529 / Stage - 1674434' + type: string + required: true + default: '1680529' + network: + description: 'Network' + type: choice + required: true + default: 'staging' + options: + - 'staging' + - 'production' + command: + description: 'Command' + type: choice + required: true + default: 'invalidate' + options: + - 'invalidate' + - 'delete' + +jobs: + clear-cache: + name: Clear Cache + runs-on: ubuntu-latest + steps: + - name: Clear Cache + uses: jdmevo123/akamai-purge-action@962351e8415c03abe809a146403cb813c8dc3be4 + env: + EDGERC: ${{ secrets.EDGERC }} + with: + command: ${{ inputs.command }} + type: 'cpcode' + ref: ${{ inputs.cpCode }} + network: ${{ inputs.network }} + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..cf37c83a5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release + +on: + push: + branches: + - main + - stage + +jobs: + clear-stage-cache: + if: github.ref == 'refs/heads/stage' + uses: ./.github/workflows/clear-cache.yml + with: + cpCode: 1674434 + network: production + command: delete + secrets: inherit + + clear-prod-cache: + if: github.ref == 'refs/heads/main' + uses: ./.github/workflows/clear-cache.yml + with: + cpCode: 1680529 + network: production + command: delete + + secrets: inherit From 41dda45ea9cf7de95ec3e173c408f3f7b3e4cca4 Mon Sep 17 00:00:00 2001 From: Ruchika Sinha <69535463+Ruchika4@users.noreply.github.com> Date: Fri, 23 Jan 2026 10:48:50 -0800 Subject: [PATCH 2/3] [MWPW-185735]Load milo libs from adobe.com for acrobat.adobe.com domain (#657) * Load milo libs from adobe.com for acrobat.adobe.com domain Resolves: [MWPW-185735](https://jira.corp.adobe.com/browse/MWPW-185735) **Test URLs:** Will be tested on stage.acrobat.adobe.com Note: This will need to be merged once akamai mapping is done on stage.acrobat.adobe for frictionless page. More details in the jira ticket **Update:** DC side PR is merged and we are getting ready to test akamai setting on acrobat.adobe.com side --- unitylibs/scripts/utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unitylibs/scripts/utils.js b/unitylibs/scripts/utils.js index 2b687ff7f..dd959efe2 100644 --- a/unitylibs/scripts/utils.js +++ b/unitylibs/scripts/utils.js @@ -4,6 +4,8 @@ export const [setLibs, getLibs] = (() => { (prodLibs, location) => { libs = (() => { const { hostname, search } = location || window.location; + if (hostname === 'acrobat.adobe.com') return 'https://www.adobe.com/libs'; + if (hostname === 'stage.acrobat.adobe.com') return 'https://www.stage.adobe.com/libs'; if (!(hostname.includes('.hlx.') || hostname.includes('.aem.') || hostname.includes('local'))) return prodLibs; const branch = new URLSearchParams(search).get('milolibs') || 'main'; if (branch === 'local') return 'http://localhost:6456/libs'; @@ -305,6 +307,7 @@ export const unityConfig = (() => { || host.includes('aem.live') || host.includes('localhost') || host.includes('stage.adobe') + || host.includes('stage.acrobat.adobe') || host.includes('corp.adobe') || host.includes('graybox.adobe')) { return cfg.stage; From 07f63a5556669b2be0e5dac1e454e6ae34d4b859 Mon Sep 17 00:00:00 2001 From: Ryan Clayton Date: Fri, 23 Jan 2026 14:12:27 -0700 Subject: [PATCH 3/3] Add workflow to clear Akamai cache on push Work flow to clear Akamai cache when code is pushed to Stage or Main branches. --- .github/workflows/clear-akamai-on-push.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/clear-akamai-on-push.yml diff --git a/.github/workflows/clear-akamai-on-push.yml b/.github/workflows/clear-akamai-on-push.yml new file mode 100644 index 000000000..0fc01ed11 --- /dev/null +++ b/.github/workflows/clear-akamai-on-push.yml @@ -0,0 +1,16 @@ +name: Clear Akamai On Push +on: + push: + branches: + - Stage + - Main + +jobs: + call-clear-cache: + uses: ./.github/workflows/clear-cache.yml + with: + cpCode: ${{ github.ref == 'refs/heads/Main' && '1680529' || '1674434' }} + network: ${{ github.ref == 'refs/heads/Main' && 'production' || 'staging' }} + command: 'invalidate' + secrets: + EDGERC: ${{ secrets.EDGERC }}