From 5668931230bdf11b68a8f11d5db579fa5edff4c8 Mon Sep 17 00:00:00 2001 From: Masterain Date: Sat, 14 Jan 2023 17:08:50 -0800 Subject: [PATCH] Update PublishDistribution.yml [skip ci] --- .github/workflows/PublishDistribution.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/PublishDistribution.yml b/.github/workflows/PublishDistribution.yml index 10fe65f1..b6c2a28c 100644 --- a/.github/workflows/PublishDistribution.yml +++ b/.github/workflows/PublishDistribution.yml @@ -39,3 +39,13 @@ jobs: EOF rclone copy ./release-download/* dgpODCN:/releases/ + + # Purge Patch System Cache + - name: Purge Patch + env: + PATCH_HOSTS: ${{ secrets.PATCH_HOSTS }} + PURGE_TOKEN: ${{ secrets.PURGE_TOKEN }} + PURGE_URL: ${{ secrets.PURGE_URL }} + run: | + sudo echo "$PATCH_HOSTS" | sudo tee -a /etc/hosts + curl --header "Authorization: token $PURGE_TOKEN" $PURGE_URL