Skip to content

chore: update GEDI L4B V2.1 (#119) #270

chore: update GEDI L4B V2.1 (#119)

chore: update GEDI L4B V2.1 (#119) #270

name: Generate & update the datasets and sites json files in the s3 folder specified in config.yml
on:
push:
branches:
- main
- staging
- production
jobs:
run-metadata-generator:
runs-on: ubuntu-latest
steps:
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Configure AWS credentials from MAAP AWS Account
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Execute the metadata generator script
env:
STAGE: ${{ steps.extract_branch.outputs.branch }}
run: python -m dataset_metadata_generator.src.main
- name: Execute the products generator script
env:
STAGE: ${{ steps.extract_branch.outputs.branch }}
run: python -m products_metadata_generator.src.main
- name: Execute the country pilots generator script
env:
STAGE: ${{ steps.extract_branch.outputs.branch }}
run: python -m country_pilots_metadata_generator.src.main