workflow(formularios): Test action #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Formatear Formularios | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "formularios/*.md" | |
pull_request: | |
paths: | |
- "formularios/*.md" | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.2 | |
with: | |
fetch-depth: 2 | |
- name: Agregar bloques de código a los formularios | |
run: | | |
for file in $(git diff --name-only ${{ github.event.before }} ${{ github.sha }}); do | |
if [[ $file == *.md ]]; then | |
python .github/scripts/update_markdown.py $file | |
fi | |
done | |
git status | |
git add . | |
git commit -m "workflow(formularios): Bloques de código" | |
- name: Prettify code | |
uses: creyD/prettier_action@v4.3 | |
with: | |
prettier_options: "--write **/*.md" | |
commit_message: "estilo{.md}: Prettier" |