From 05672d4b09989b1c14247e47a9a6b33d85db08d3 Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 15 Sep 2025 16:42:54 +0300 Subject: [PATCH] will this work? --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0e4da3..6d2d1b3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,17 @@ jobs: hostname: github-actions tags: tag:ci + - name: Check if Attic endpoint is reachable + id: check_attic + run: | + if curl --connect-timeout 5 --silent --head http://wallfacer.curl-boga.ts.net:7080 | grep "200 OK"; then + echo "reachable=true" >> $GITHUB_OUTPUT + else + echo "reachable=false" >> $GITHUB_OUTPUT + fi + - name: Setup Attic cache + if: steps.check_attic.outputs.reachable == 'true' uses: ryanccn/attic-action@v0.3.1 with: endpoint: http://wallfacer.curl-boga.ts.net:7080