Compare commits

...

2 commits

Author SHA1 Message Date
alvaro@thinkpad
7894311300 Merge branch 'main' of ssh://jackdevops.freeddns.org:2223/alvaro/md-to-html
Some checks failed
run-test-on-push / run-script (push) Failing after 12s
2026-05-16 13:15:38 +02:00
alvaro@thinkpad
ce20d8c0a9 Primer intento 2026-05-16 13:13:12 +02:00
2 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,27 @@
name: run-test-on-push
on:
push:
tags:
- release-*
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Run script 1
run: uname -a
- name: Run script 2
run: date
- name: Run script 3
run: whoami
- name: Run script 4
run: pwd
- name: Run script 5
run: hostname -I
- name: Run script 6
run: hostname
- name: Run script 7
run: env
- uses: actions/checkout@v4
- name: Run a script of repository
run: ./convert-to-html-and-upload-to-apache.sh

View file

@ -0,0 +1,33 @@
#!/bin/sh
dependencies(){
apt update
apt install -y pandoc
}
convert_to_html(){
# NOTA: FICHEROS SIN ESPACIOS EN LOS NOMBRES
for MD in $(ls *.md)
do
pandoc -o $MD.html $MD
done
}
upload(){
for HTML in $(ls *.md)
do
echo "USAR scp O ftp O CUALQUIER OTRA COSA PARA SUBIR LOS HTML A UN APACHE: $HTML"
done
}
main(){
dependencies
convert_to_html
upload
}
main