ci: use sudo

This commit is contained in:
Folke Lemaitre 2024-11-05 20:47:45 +01:00
parent 8bedc077ff
commit 78493548f7
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -1,5 +1,7 @@
#!/bin/env bash
set -e
nvim -u tests/minit.lua --headless +'lua require("snacks.docs").build()' +qa
echo -e "\n\nGenerating Vim Help"
@ -8,8 +10,8 @@ if [ "$GITHUB_ACTIONS" != "true" ]; then
exit 0
fi
apt update
apt install -y pandoc
sudo apt update
sudo apt install -y pandoc
PANVIMDOC="$RUNNER_TEMP/panvimdoc"
@ -17,7 +19,7 @@ git clone https://github.com/kdheepak/panvimdoc.git "$PANVIMDOC"
ME=$(pwd)
cd "$PANVIMDOC" || exit 1
cd "$PANVIMDOC"
for f in "$ME"/docs/*.md; do
./panvimdoc.sh --project-name "snacks.nvim" --input-file "$f" --vim-version "Neovim" --demojify "true" >"$ME/doc/snacks.nvim-$(basename "$f" .md).txt"