From 0ae0b3618efa0f97fe2d6676ab761ab90d439c7d Mon Sep 17 00:00:00 2001 From: AnturK Date: Fri, 16 Jul 2021 18:38:23 +0200 Subject: [PATCH] Adds a secret to manually purge actions caches and fixes byond/sdmm caching. (#60229) CACHE_PURGE_KEY is arbitrary secret that can be changed to purge all caches. --- .github/workflows/ci_suite.yml | 12 ++++++------ .github/workflows/generate_documentation.yml | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci_suite.yml b/.github/workflows/ci_suite.yml index 050caa6a238..c4bff830ff2 100644 --- a/.github/workflows/ci_suite.yml +++ b/.github/workflows/ci_suite.yml @@ -16,8 +16,8 @@ jobs: - name: Setup cache uses: actions/cache@v2 with: - path: $HOME/SpacemanDMM - key: ${{ runner.os }}-spacemandmm + path: ~/SpacemanDMM + key: ${{ runner.os }}-spacemandmm-${{ secrets.CACHE_PURGE_KEY }} - name: Install Tools run: | pip3 install setuptools @@ -51,8 +51,8 @@ jobs: - name: Setup cache uses: actions/cache@v2 with: - path: $HOME/BYOND - key: ${{ runner.os }}-byond + path: ~/BYOND + key: ${{ runner.os }}-byond-${{ secrets.CACHE_PURGE_KEY }} - name: Compile All Maps run: | bash tools/ci/install_byond.sh @@ -77,8 +77,8 @@ jobs: - name: Setup cache uses: actions/cache@v2 with: - path: $HOME/BYOND - key: ${{ runner.os }}-byond + path: ~/BYOND + key: ${{ runner.os }}-byond-${{ secrets.CACHE_PURGE_KEY }} - name: Setup database run: | sudo systemctl start mysql diff --git a/.github/workflows/generate_documentation.yml b/.github/workflows/generate_documentation.yml index c1b7a2d5e13..bb19c92e3b7 100644 --- a/.github/workflows/generate_documentation.yml +++ b/.github/workflows/generate_documentation.yml @@ -12,8 +12,8 @@ jobs: - name: Setup cache uses: actions/cache@v2 with: - path: $HOME/SpacemanDMM - key: ${{ runner.os }}-spacemandmm + path: ~/SpacemanDMM + key: ${{ runner.os }}-spacemandmm-${{ secrets.CACHE_PURGE_KEY }} - name: Install SpacemanDMM run: bash tools/ci/install_spaceman_dmm.sh dmdoc - name: Generate documentation