daily csv action #35
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: daily csv action | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
csv-generator: | |
runs-on: ubuntu-latest | |
env: | |
CI_COMMIT_MESSAGE: daily csv generated | |
permissions: | |
contents: write | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v3 | |
- name: install requirements | |
run: pip3 install -r requirements.txt | |
- name: run script | |
run: ./run.sh | |
- name: directory contents | |
run: ls -al | |
- name: push repo | |
run: | | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
git add csv/ | |
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}" | |
git push | |