parent
ca73882ac1
commit
d70071ea34
2 changed files with 12 additions and 17 deletions
|
@ -8,16 +8,7 @@ jobs:
|
||||||
apt update
|
apt update
|
||||||
apt install -y pandoc
|
apt install -y pandoc
|
||||||
export DEBIAN_FRONTEND=noninteractive ; apt-get -qq update && apt-get install -y --quiet sshpass rsync
|
export DEBIAN_FRONTEND=noninteractive ; apt-get -qq update && apt-get install -y --quiet sshpass rsync
|
||||||
- name: Install checkout
|
|
||||||
uses: https://github.com/actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
|
|
||||||
- name: Get changed files
|
|
||||||
id: changed-files
|
|
||||||
uses: https://github.com/tj-actions/changed-files@v45
|
|
||||||
- name: Update website
|
- name: Update website
|
||||||
env:
|
|
||||||
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
|
||||||
if: ${{ secrets.WEBTOKEN != '' }}
|
if: ${{ secrets.WEBTOKEN != '' }}
|
||||||
run: |
|
run: |
|
||||||
echo "Cloning"
|
echo "Cloning"
|
||||||
|
@ -29,15 +20,8 @@ jobs:
|
||||||
git config user.email "ci@git.forgeons.org"
|
git config user.email "ci@git.forgeons.org"
|
||||||
git config user.name "forgeons-web"
|
git config user.name "forgeons-web"
|
||||||
cd scripts
|
cd scripts
|
||||||
ls -al
|
|
||||||
echo "Pandoc"
|
|
||||||
./install.sh
|
|
||||||
echo "Script"
|
echo "Script"
|
||||||
for file in ${ALL_CHANGED_FILES}; do
|
./web.sh batch
|
||||||
echo "Script"
|
|
||||||
./web.sh convert "$file"
|
|
||||||
done
|
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
echo "Rsync"
|
echo "Rsync"
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
|
@ -14,8 +14,19 @@ convert()
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
batch()
|
||||||
|
{
|
||||||
|
files=$(ls ../pages)
|
||||||
|
for f in $files
|
||||||
|
do
|
||||||
|
echo "$f"
|
||||||
|
convert $f
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
convert) shift 1; convert "$@";;
|
convert) shift 1; convert "$@";;
|
||||||
|
batch) batch ;;
|
||||||
*) echo "?" ;;
|
*) echo "?" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue