Skip to content

Commit

Permalink
chore: fix automation script
Browse files Browse the repository at this point in the history
  • Loading branch information
mariagrandury committed Jul 27, 2023
1 parent 08fcfad commit a7f1ddd
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/readme-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,23 @@ jobs:
- name: Check out repository
uses: actions/checkout@v2

- name: Generate README
run: |
#!/bin/bash
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: Install dependencies
run: |
pip install pandas tabulate
- name: Reorder datasets.csv and generate README
run: |
python generate_datasets_table.py
- name: Commit and push changes
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git add datasets.csv README.md
git commit -m "Update datasets table and reorder datasets.csv"
git push origin "${{ github.head_ref }}"
git push origin "refs/heads/${{ github.head_ref }}"

0 comments on commit a7f1ddd

Please sign in to comment.