From a7f1ddd43a00dae315c10c3f786dc63dbbdaf6e4 Mon Sep 17 00:00:00 2001 From: Maria Grandury Date: Thu, 27 Jul 2023 12:07:05 +0200 Subject: [PATCH] chore: fix automation script --- .github/workflows/readme-generation.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/readme-generation.yml b/.github/workflows/readme-generation.yml index fd29928..6d0a604 100644 --- a/.github/workflows/readme-generation.yml +++ b/.github/workflows/readme-generation.yml @@ -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 }}"