Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gha updated for the database #365

Merged
merged 21 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading