mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-01 10:50:32 +02:00
Update generate_stargazer_map.yml
This commit is contained in:
17
.github/workflows/generate_stargazer_map.yml
vendored
17
.github/workflows/generate_stargazer_map.yml
vendored
@@ -9,7 +9,8 @@ jobs:
|
|||||||
generate-map:
|
generate-map:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
@@ -18,18 +19,20 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install requests geopy folium pycountry
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y gdal-bin
|
||||||
|
pip install requests pandas geopandas matplotlib pycountry geopy
|
||||||
|
|
||||||
- name: Run script
|
- name: Run script
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
REPO: alexbelgium/hassio-addons
|
REPO: alexbelgium/hassio-addons
|
||||||
run: python .github/generate_map.py
|
run: python .github/generate_stargazer_map.py
|
||||||
|
|
||||||
- name: Commit and push map
|
- name: Commit and push CSV and PNG
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "github-actions[bot]"
|
git config --global user.name "github-actions[bot]"
|
||||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git add map/index.html
|
git add stargazers_countries.csv stargazer_map.png
|
||||||
git commit -m "Update stargazer map" || echo "No changes to commit"
|
git commit -m "Update stargazer map and countries CSV" || echo "No changes to commit"
|
||||||
git push --force
|
git push
|
||||||
|
|||||||
Reference in New Issue
Block a user