From b9498fefd50d867defd0071243e55b99a6e4d747 Mon Sep 17 00:00:00 2001 From: osbm Date: Thu, 18 Sep 2025 08:51:11 +0300 Subject: [PATCH] Revert "dont check" This reverts commit 9407917da864f6cdd93d1564bab5900b28ada7d2. --- .github/workflows/ci.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eeeafc4..194a032 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,23 +61,23 @@ jobs: # - name: Tailscale status # run: tailscale status || true - # - name: Check if Attic endpoint is reachable - # id: check_attic - # run: | - # if curl --connect-timeout 20 --silent --head https://cache.osbm.dev | grep "200 OK"; then - # echo "Attic endpoint is reachable" - # echo "reachable=true" >> $GITHUB_OUTPUT - # else - # echo "Attic endpoint is not reachable" - # echo "reachable=false" >> $GITHUB_OUTPUT - # fi + - name: Check if Attic endpoint is reachable + id: check_attic + run: | + if curl --connect-timeout 20 --silent --head https://cache.osbm.dev | grep "200 OK"; then + echo "Attic endpoint is reachable" + echo "reachable=true" >> $GITHUB_OUTPUT + else + echo "Attic endpoint is not reachable" + echo "reachable=false" >> $GITHUB_OUTPUT + fi - name: Curl the cache run: | curl --connect-timeout 20 --silent https://cache.osbm.dev/main/nix-cache-info || echo "Cache endpoint not reachable" - name: Setup Attic cache - # if: steps.check_attic.outputs.reachable == 'true' + if: steps.check_attic.outputs.reachable == 'true' uses: ryanccn/attic-action@v0.3.1 with: endpoint: https://cache.osbm.dev