will this work?
This commit is contained in:
parent
009dfd4cd5
commit
05672d4b09
1 changed files with 10 additions and 0 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
|
@ -22,7 +22,17 @@ jobs:
|
||||||
hostname: github-actions
|
hostname: github-actions
|
||||||
tags: tag:ci
|
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
|
- name: Setup Attic cache
|
||||||
|
if: steps.check_attic.outputs.reachable == 'true'
|
||||||
uses: ryanccn/attic-action@v0.3.1
|
uses: ryanccn/attic-action@v0.3.1
|
||||||
with:
|
with:
|
||||||
endpoint: http://wallfacer.curl-boga.ts.net:7080
|
endpoint: http://wallfacer.curl-boga.ts.net:7080
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue