Skip to content

Commit

Permalink
Merge pull request #365 from ambarja/master
Browse files Browse the repository at this point in the history
gha updated for the database
  • Loading branch information
ambarja authored Jul 4, 2024
2 parents efaa88f + 0d1be7b commit 0954e26
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 3 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/update_dataset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Based on: https://github.com/samapriya/Earth-Engine-Datasets-List/blob/master/.github/workflows/gee_catalog.yml
# Author: Roy Samapriya
# Edited: Antony Barja
name: gee_catalog_lightweight
on:
push:
branches:
- master
schedule:
- cron: '0 1 * * *'

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: checkout repo content
uses: actions/checkout@v2

- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -U pip setuptools
pip install pendulum beautifulsoup4 requests
- name: dataset upgrade
run: |
python3 ./.github/db_up.py
- name: file_check
run: ls -l -a

- name: commit files
continue-on-error: true
run: |
today=$(date +"%Y-%m-%d")
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git commit -m "updated datasets ${today}" -a
- name: push changes
continue-on-error: true
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master
8 changes: 5 additions & 3 deletions .github/workflows/updated_earthengine_api.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Based on: https://github.com/samapriya/Earth-Engine-Datasets-List/blob/master/.github/workflows/gee_catalog.yml
# Author: Roy Samapriya
name: gee_catalog_lightweight
name: gee_updated_api
on:
push:
branches:
Expand All @@ -18,10 +18,12 @@ jobs:

- name: setup python
uses: actions/setup-python@v2

with:
python-version: '3.x' # install the python version needed

- name: install python packages
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip
pip install earthengine-api
- name: dataset upgrade
run: |
Expand Down
1 change: 1 addition & 0 deletions inst/dataset.json

Large diffs are not rendered by default.

0 comments on commit 0954e26

Please sign in to comment.