Skip to content

update_readme

update_readme #1

Workflow file for this run

name: update_readme
on:
workflow_dispatch:
jobs:
fire_data:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
# Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
# Run the update_readme.py script to update README.md with the latest fire data
- name: Update README with Fire Data
run: python update_readme.py
# Commit and push changes
- name: Commit and push changes
run: |-
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
timestamp=$(date '+%Y-%m-%d %H:%M:%S')
git commit -m "Auto-update fire data ${timestamp}" || exit 0
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}