Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Clean up snapshot cache on master
Rūdolfs Ošiņš committed 3 years ago
commit 5f2cd259a06dee9c7cba359526ac1367ff72352c
parent e80fabbbddde15a822809af0f45e518ba6b82f24
1 file changed +11 -0
modified .github/workflows/check-e2e.yml
@@ -18,6 +18,17 @@ jobs:
    steps:
      - uses: actions/checkout@v3

+
      - name: Evict playwright snapshot cache when pushing to master
+
        run: |
+
          if [ ${{ matrix.browser }} = "visual" ] && [ ${{ github.ref }} = "refs/heads/master" ]; then
+
            echo "Deleting ${{ runner.os }}-snapshots cache"
+
            gh extension install actions/gh-actions-cache
+
            gh actions-cache delete ${{ runner.os }}-snapshots --confirm || true
+
            echo "Done"
+
          fi
+
        env:
+
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+

      - uses: actions/setup-node@v3
        with:
          node-version: "18.12.1"