From 9d2e1fc2afbe8c92719d9b9c9f8222ba3ccb9d04 Mon Sep 17 00:00:00 2001 From: zyb Date: Mon, 5 Aug 2024 17:21:59 +0800 Subject: [PATCH] modified: .github/workflows/mikrotik_patch_6.yml modified: .github/workflows/mikrotik_patch_7.yml --- .github/workflows/mikrotik_patch_6.yml | 8 ++++++++ .github/workflows/mikrotik_patch_7.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/mikrotik_patch_6.yml b/.github/workflows/mikrotik_patch_6.yml index 4012387f..ce10df9d 100644 --- a/.github/workflows/mikrotik_patch_6.yml +++ b/.github/workflows/mikrotik_patch_6.yml @@ -229,6 +229,14 @@ jobs: mirror --reverse --verbose --only-newer ./publish ${{ secrets.SSH_DIRECTORY }} bye EOF + + - name: Clear Cloudflare cache + if: steps.get_latest.outputs.has_new_version == 'true' + run: | + curl --request POST --url "https://api.cloudflare.com/client/v4/zones/fe6831ed6dc9e6235e69ef2a31f2e7fe/purge_cache" \ + --header "Authorization: Bearer 9GDQkzU51QXaqzp1qMjyFKpyeJyOdnNoG9GZQaGP" \ + --header "Content-Type:application/json" \ + --data '{"purge_everything": true}' - name: Delete Release tag ${{ env.LATEST_VERSION }} if: steps.get_latest.outputs.has_new_version == 'true' diff --git a/.github/workflows/mikrotik_patch_7.yml b/.github/workflows/mikrotik_patch_7.yml index e20f9931..ad5120aa 100644 --- a/.github/workflows/mikrotik_patch_7.yml +++ b/.github/workflows/mikrotik_patch_7.yml @@ -389,6 +389,14 @@ jobs: bye EOF + - name: Clear Cloudflare cache + if: steps.get_latest.outputs.has_new_version == 'true' + run: | + curl --request POST --url "https://api.cloudflare.com/client/v4/zones/fe6831ed6dc9e6235e69ef2a31f2e7fe/purge_cache" \ + --header "Authorization: Bearer 9GDQkzU51QXaqzp1qMjyFKpyeJyOdnNoG9GZQaGP" \ + --header "Content-Type:application/json" \ + --data '{"purge_everything": true}' + - name: Delete Release tag ${{ env.LATEST_VERSION }} ${{ matrix.arch }} if: steps.get_latest.outputs.has_new_version == 'true' run: |