Skip to content

Commit

Permalink
Fix Could not resolve host: weather.bg error - removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ptanov committed Aug 20, 2024
1 parent 3b291f2 commit 3997bf5
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/meteo-vitosha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,8 @@ jobs:
- uses: actions/checkout@v4
with:
ref: pages
# config-inline: |
# [dns]
# nameservers="8.8.8.8,1.1.1.1,8.8.4.4,1.0.0.1"
- shell: bash
run: |
#weatherIp="$(dig +short weather.bg @8.8.8.8)"
#hydroIp="$(dig +short hydro.bg @8.8.8.8)"
# weatherIp="$(nslookup weather.bg 8.8.8.8 | grep "Address:" | grep -v "8\.8\.8\.8" | grep -o "\d+\.\d+\.\d+\.\d+")"
# hydroIp="$(nslookup hydro.bg 8.8.8.8 | grep "Address:" | grep -v "8\.8\.8\.8" | grep -o "\d+\.\d+\.\d+\.\d+")"
# for some reason from time to time we are getting `Could not resolve host: weather.bg` error
#echo "${weatherIp} weather.bg" >> /etc/hosts
#echo "${hydroIp} hydro.bg" >> /etc/hosts
changes="false"
response="$(curl --dns-servers '8.8.8.8,1.1.1.1,8.8.4.4,1.0.0.1' 'https://weather.bg/index.php?koiFail=tekushti&lng=0')"
echo "Meteo response is: <<<${response}>>>"
Expand Down

0 comments on commit 3997bf5

Please sign in to comment.