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 f006ae8 commit a628b32
Showing 1 changed file with 26 additions and 16 deletions.
42 changes: 26 additions & 16 deletions .github/workflows/generate_markdown_list.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,38 @@
name: generate-list
name: Generate Markdown List

on:
push:
branches:
- main
pull_request:
branches:
- main
- main # Cambia a la rama que prefieras

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

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

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

- name: Setup Python
uses: actions/setup-python@v4
- 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 markdown pyyaml
- name: Generate markdown files list
run: |
python generate_markdown_list.py
- name: Run script
run: python generate_markdown_list.py ${{ github.workspace }}
- 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 }}

0 comments on commit a628b32

Please sign in to comment.