Skip to content

Commit

Permalink
Update python-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zeflorentino authored Nov 29, 2023
1 parent 2679a18 commit 8e04ff9
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
workflow_dispatch:
workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -36,15 +36,20 @@ jobs:
- name: Run Python script
run: |
python conab.py
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add .
git commit -m "Add generated files by conab.py"
- name: Push changes
uses: ad-m/[email protected]
- name: List files after running Python script
run: ls -R

- name: Upload CSVs as artifacts
uses: actions/upload-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
name: csv-files
path: milhototal.csv soja.csv

- name: Commit and Push CSV files
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add milhototal.csv soja.csv
git commit -m "Add generated CSV files"
git push

0 comments on commit 8e04ff9

Please sign in to comment.