Skip to content

Commit

Permalink
Update generate_markdown_list.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
diegovelezg authored Jul 3, 2024
1 parent 7384ff2 commit 435e258
Showing 1 changed file with 21 additions and 24 deletions.
45 changes: 21 additions & 24 deletions .github/workflows/generate_markdown_list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,33 @@ name: Generate Markdown List
on:
push:
branches:
- main # Cambia a la rama que prefieras
- main

jobs:
generate-list:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml pandas
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml
- name: Generate markdown files list
run: |
python generate_markdown_list.py
- name: Run script
run: python generate_markdown_list.py

- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add markdown_files.yaml markdown_files.json markdown_files.csv
git commit -m 'Generate markdown files list'
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add markdown_files.csv markdown_files.json markdown_files.yaml
git diff-index --quiet HEAD || git commit -m "Update generated markdown files"
git push

0 comments on commit 435e258

Please sign in to comment.