actions updateDomains con py3
This commit is contained in:
9
.github/workflows/updateDomains.yml
vendored
9
.github/workflows/updateDomains.yml
vendored
@@ -14,12 +14,13 @@ jobs:
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 2.7
|
||||
python-version: 3.7
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install requests
|
||||
|
||||
- name: Update domains
|
||||
run: |
|
||||
pip install requests
|
||||
python tools/updateDomains.py
|
||||
run: python tools/updateDomains.py
|
||||
|
||||
- name: Commit & Push changes
|
||||
uses: actions-js/push@master
|
||||
|
||||
@@ -73,7 +73,7 @@ if __name__ == '__main__':
|
||||
rslt['code_new'] = 200
|
||||
except Exception as e:
|
||||
import traceback
|
||||
traceback.print_last()
|
||||
traceback.print_exc()
|
||||
# non-existent site
|
||||
elif rslt['code'] == -2:
|
||||
print('Host Sconosciuto - '+ str(rslt['code']) +' - '+ host)
|
||||
|
||||
Reference in New Issue
Block a user