Skip to content

nrt current day update #772

nrt current day update

nrt current day update #772

name: nrt current day update
on:
workflow_dispatch:
schedule:
- cron: "0 9-23 * * *"
jobs:
run_dps_job_v3:
if: |
${{ vars.SCHEDULER_ENABLED == 'true' }} &&
contains('["ranchodeluxe", "mccabete", "jsignell", "zebbecker", "eorland"]', github.actor)
runs-on: ubuntu-latest
environment: production
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: pip install fireatlas
run: |
pip install .
- name: get docker GID and set DOCKER_GID environment variable
run: |
echo "DOCKER_GID=$(getent group docker | cut -d: -f3)" >> $GITHUB_ENV
- name: get current user UID and set UID environment variable
run: |
echo "UID=$(id -u)" >> $GITHUB_ENV
- name: print DOCKER_GID and UID
run: |
echo "Docker GID: $DOCKER_GID"
echo "User UID: $UID"
- name: kick off the DPS job
uses: Earth-Information-System/fireatlas/.github/actions/run-dps-job-v3@conus-dps
with:
algo_name: eis-feds-dask-coordinator-v3
github_ref: 1.2.3
username: gcorradini
queue: maap-dps-eis-worker-32gb
maap_image_env: ubuntu
maap_pgt_secret: ${{ secrets.MAAP_PGT }}
# for data update the script expects all params so we can pass nonesense, the only used one is "operation"
json_params: '{"regnm": "NA", "bbox": "[0,0,0,0]", "tst": "[]", "ted": "[]", "operation": "--data-update"}'
- name: send alert on Slack if failure
if: always()
uses: ravsamhq/notify-slack-action@2.5.0
with:
status: ${{ job.status }}
notify_when: "failure"
notification_title: "GH Action Failed - <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}|View Failed Run>"
footer: "<${{github.server_url}}/${{github.repository}}/issues/|Open GitHub Issues>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK_WEBHOOK_URL }}