Skip to content

Generate csv

Generate csv #420

Workflow file for this run

name: Generate csv
on:
schedule:
- cron: "0 1 * * *"
push:
branches:
- main
jobs:
run-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r "src/requirements.txt"
- name: Set current date as env variable
run: echo "NOW=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV
- name: run python file
run: |
python3 src/fuelish.py
cd src
ls
git config --global user.name "Bot"
git config --global user.email "your email"
git clean -d -f
git pull
git add -A
git commit -m "Data-"$NOW
git push