diff --git a/.github/workflows/clear_cache.yaml b/.github/workflows/clear_cache.yaml deleted file mode 100644 index ef43c54c4f..0000000000 --- a/.github/workflows/clear_cache.yaml +++ /dev/null @@ -1,37 +0,0 @@ -# Purpose: The purpose of this workflow is to delete all caches for a specific run. - -name: Clear Caches - -on: - workflow_call: - workflow_dispatch: - -jobs: - cleanup: - name: Clear Cache - runs-on: ubuntu-latest - permissions: - contents: write - id-token: write - # Run even if one of the functional tests have failed - # We always want to clean up the caches that we create - if: always() - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - - name: Cleanup - run: | - gh extension install actions/gh-actions-cache - cacheKeys=$(gh actions-cache list -R $REPO) - set +e - for cacheKey in $cacheKeys - do - if [[ $cacheKey == scubagear-directory-${{ github.run_id }} ]] ||[[ $cacheKey == powershell-directory-${{ github.run_id }} ]] || [[ $cacheKey == opa-directory-${{ github.run_id }} ]] - then - echo "Deleting" $cacheKey - gh actions-cache delete $cacheKey --confirm - fi - done - env: - GH_TOKEN: ${{ github.token }} - REPO: ${{ github.repository }}