nrt current day update #2237
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
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.5 | |
username: zbecker | |
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/[email protected] | |
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 }} |