Skip to content

Commit b3fb1ed

Browse files
committed
FEAT: Added workflow for ee-appshot
1 parent e522d47 commit b3fb1ed

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

.github/scripts/update_ee_appshot.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import json
2+
3+
import requests
4+
5+
# Request ee-appshot
6+
eeAppshot = requests.get(
7+
"https://raw.githubusercontent.com/samapriya/ee-appshot/main/app_urls.json"
8+
).json()
9+
# Save the dict as json file
10+
with open("./ee_extra/data/ee-appshot.json", "w") as fp:
11+
json.dump(eeAppshot, fp, indent=4, sort_keys=True)
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ee-appshot
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: checkout
12+
uses: actions/checkout@v2
13+
- name: python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: '3.7'
17+
- name: dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install requests
21+
- name: execute
22+
run: |
23+
python ./.github/scripts/update_ee_appshot.py
24+
- name: commit
25+
continue-on-error: true
26+
run: |
27+
today=$(date +"%Y-%m-%d %H:%M:%S")
28+
git config --local user.email "[email protected]"
29+
git config --local user.name "GitHub Action"
30+
git add -A
31+
git commit -m "Updated ee-appshot ${today} UTC" -a
32+
- name: push
33+
continue-on-error: true
34+
uses: ad-m/[email protected]
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
branch: master

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@
3333
<img src="https://github.com/r-earthengine/ee_extra/actions/workflows/update_awesome_spectral_indices.yml/badge.svg" alt="Awesome Spectral Indices">
3434
</a>
3535
<a href="https://github.com/r-earthengine/ee_extra/actions/workflows/update_gee_stac_ids.yml" target="_blank">
36-
<img src="https://github.com/r-earthengine/ee_extra/actions/workflows/update_gee_stac_ids.yml/badge.svg" alt="License">
36+
<img src="https://github.com/r-earthengine/ee_extra/actions/workflows/update_gee_stac_ids.yml/badge.svg" alt="GEE STAC">
3737
</a>
3838
<a href="https://github.com/r-earthengine/ee_extra/actions/workflows/update_gee_stac_scale_offset.yml" target="_blank">
39-
<img src="https://github.com/r-earthengine/ee_extra/actions/workflows/update_gee_stac_scale_offset.yml/badge.svg" alt="GitHub Sponsors">
39+
<img src="https://github.com/r-earthengine/ee_extra/actions/workflows/update_gee_stac_scale_offset.yml/badge.svg" alt="Scale and Offset">
40+
</a>
41+
<a href="https://github.com/r-earthengine/ee_extra/actions/workflows/update_ee_appshot.yml" target="_blank">
42+
<img src="https://github.com/r-earthengine/ee_extra/actions/workflows/update_ee_appshot.yml/badge.svg" alt="ee-appshot">
4043
</a>
4144
<a href="https://github.com/psf/black" target="_blank">
4245
<img src="https://img.shields.io/badge/code%20style-black-000000.svg" alt="Black">

0 commit comments

Comments
 (0)