+ - name: Cleanup cache
+ if: steps.restore-cache.outputs.cache-hit == 'true'
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ cache_key: cache-reqs-${{ github.job }}
+ repository: ${{ github.repository }}
+ branch: ${{ github.ref }}
+ run: |
+ gh extension install actions/gh-actions-cache
+ gh actions-cache delete "${cache_key}" -R "${repository}" -B "${branch}" --confirm
+
+ - name: Cache requirements
+ uses: actions/cache/save@v4
+ with:
+ path: |
+ ~/yt-dlp-build-venv
+ key: cache-reqs-${{ github.job }}
+