From e8c54d79fb8a813ebcb4c54ba1236b369fc44072 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Tue, 2 May 2023 13:15:48 +0100 Subject: [PATCH] Extract pull zone id in CI script into a variable --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 911180a8..900e9540 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -128,7 +128,8 @@ jobs: run: | # Clear CDN cache to re-request content: curl -f --request POST \ - --url https://api.bunny.net/pullzone/1110200/purgeCache \ + --url https://api.bunny.net/pullzone/$PULL_ZONE_ID/purgeCache \ --header "AccessKey: $BUNNY_SITE_API_KEY" env: + PULL_ZONE_ID: 1110200 BUNNY_SITE_API_KEY: ${{ secrets.BUNNY_SITE_API_KEY }} \ No newline at end of file