Skip to content

Boundaries

Boundaries #1648

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Boundaries
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_dispatch:
schedule:
- cron: "50 15 * * * "
jobs:
conda:
name: Conda ${{ matrix.python-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: ['ubuntu-latest']
python-version: ['3.9']
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install prerequisites
shell: bash -l {0}
run: |
conda config --add channels conda-forge
conda install -c conda-forge pdal=2.7 pystac Shapely pyproj Fiona nodejs -y
cd action; pip install requests boto3 awscli; pip install -e .
npm install -g topojson-server
- name: Gather boundaries
shell: bash -l {0}
run: |
usgs-boundary usgs-lidar-public -v --resolution 800.0
ls
pwd
mv resources.geojson ./boundaries
mv errors.json ./boundaries
$CONDA_PREFIX/bin/geo2topo -o boundaries.topojson ./boundaries/resources.geojson
mv boundaries.topojson ./boundaries
aws s3 sync stac_ept s3://usgs-lidar-stac/ept/ --acl public-read
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Configure Git
shell: bash -l {0}
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add boundaries/*
git commit -m "Update boundaries" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}