Skip to content

add: get_today_effis_fwi.yml #3

add: get_today_effis_fwi.yml

add: get_today_effis_fwi.yml #3

name: GetTodayEffisFwi
on:
pull_request:
# workflow_dispatch:
# schedule:
# - cron: "0 1 * * *"
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Check out this repo
uses: actions/checkout@v3
- name: Install dependencies
run: pip install -e .
- name: Get Today Effis Fwi
run: python pyro_risks/platform_fwi/main.py
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
BUCKET_NAME: risk
S3_REGION: gra
S3_ENDPOINT_URL: https://s3.gra.io.cloud.ovh.net/
- name: Commit and push if it changed
if: always()
run: |-
git config user.name "Automated"
git config user.email "[email protected]"
git add -A
timestamp=$(date -u)
git commit -m "Latest data: ${timestamp}" || exit 0
git push