forked from eco4cast/neon4cast-ci
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from eco4cast/split-combined
Splitting catalog out from scores and dashboard
- Loading branch information
Showing
2 changed files
with
9 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
on: | ||
#schedule: | ||
# - cron: '0 23 * * *' | ||
schedule: | ||
- cron: '0 23 * * *' | ||
workflow_dispatch: | ||
|
||
name: catalog | ||
|
||
jobs: | ||
docker: | ||
catalog: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
OSN_KEY: ${{ secrets.OSN_KEY }} | ||
OSN_SECRET: ${{ secrets.OSN_SECRET }} | ||
#container: rocker/geospatial:latest | ||
container: eco4cast/rocker-neon4cast:latest | ||
steps: | ||
- run: git config --system --add safe.directory '*' | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
set-safe-directory: '*' | ||
ref: prod | ||
fetch-depth: 0 | ||
set-safe-directory: '*' | ||
|
||
- name: install validator | ||
run: | | ||
|
@@ -34,7 +34,7 @@ jobs: | |
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git pull | ||
git add catalog/* . | ||
git commit -a -m "update catalog" || echo "nothing to commit" | ||
git push https://${GITHUB_PAT}:${GITHUB_PAT}@github.com/${GITHUB_REPOSITORY} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
- cron: '0 5 * * *' | ||
workflow_dispatch: | ||
|
||
name: submissions-score-dashboard-catalog | ||
name: submissions-score-dashboard | ||
|
||
jobs: | ||
submissions: | ||
|
@@ -51,42 +51,8 @@ jobs: | |
run: | | ||
source("scoring/build_score_inventory.R") | ||
catalog: | ||
needs: scores | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
OSN_KEY: ${{ secrets.OSN_KEY }} | ||
OSN_SECRET: ${{ secrets.OSN_SECRET }} | ||
#container: rocker/geospatial:latest | ||
container: eco4cast/rocker-neon4cast:latest | ||
steps: | ||
- run: git config --system --add safe.directory '*' | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
ref: prod | ||
fetch-depth: 0 | ||
set-safe-directory: '*' | ||
|
||
- name: install validator | ||
run: | | ||
pip install stac-validator | ||
- name: Render | ||
shell: Rscript {0} | ||
run: source("catalog/update_stac.R") | ||
|
||
- name: Commit and Push | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git pull | ||
git add catalog/* . | ||
git commit -a -m "update catalog" || echo "nothing to commit" | ||
git push https://${GITHUB_PAT}:${GITHUB_PAT}@github.com/${GITHUB_REPOSITORY} | ||
dashboard: | ||
needs: catalog | ||
needs: scores | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|