Why macos is so shitty
This commit is contained in:
parent
5163585282
commit
b50ee232bb
1 changed files with 5 additions and 1 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -44,12 +44,16 @@ jobs:
|
|||
- 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
|
||||
if curl --connect-timeout 20 --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: Curl the cache
|
||||
run: |
|
||||
curl http://wallfacer.curl-boga.ts.net:7080/main/nix-cache-info
|
||||
|
||||
- name: Setup Attic cache
|
||||
if: steps.check_attic.outputs.reachable == 'true'
|
||||
uses: ryanccn/attic-action@v0.3.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue