I am trying to use Github Action to test a daily running python script. Here below have the very simple file directory:

DailyScrapingData.py: (the code below can be run successfully in local machine)
from yahoo_fin import stock_info as si
from datetime import datetime
content = datetime.now().strftime("%Y%m%d") + ", " + str(si.get_live_price("^DJI")) + ", " + str(si.get_live_price("^DWCF"))
print(content, file = open('DailyScrapingData.csv', 'a+'))
.github/workflows/scheduler.yml:
name: DailyScrapingData
on:
schedule:
- cron: '0 1 * * 1-5'
jobs:
pull_data:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.8' # install the python version needed
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script
run: python3 DailyScrapingData.py

There is nothing when I check DailyScrapingData.csv after running all steps of Github actions. Supposingly after running the python script should have to write some data into the csv. But nothing happen.
Any thoughts?
runstep: stackoverflow.com/a/40825320/736079 replace.svnwith.git.