ci: update workflows

This commit is contained in:
ObserverOfTime 2023-08-15 20:32:47 +03:00
parent f8bc6c69d7
commit 1a4116aef1
3 changed files with 12 additions and 20 deletions

View file

@ -17,19 +17,15 @@ jobs:
env:
NVIM_TAG: stable
run: |
sudo apt install libfuse2
wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim.appimage
chmod u+x nvim.appimage
mkdir -p ~/.local/share/nvim/site/pack/nvim-treesitter/start
ln -s $(pwd) ~/.local/share/nvim/site/pack/nvim-treesitter/start
bash ./scripts/ci-install-ubuntu-latest.sh
- name: Check README
run: |
git config user.email "actions@github"
git config user.name "Github Actions"
./nvim.appimage --headless -c "luafile ./scripts/update-readme.lua" -c "q" || echo "Needs update"
git config user.email 'actions@github'
git config user.name 'Github Actions'
nvim -l scripts/update-readme.lua || echo 'Needs update'
git add README.md
git commit -m "Update README" || echo 'No commit necessary!'
git commit -m 'Update README' || echo 'No commit necessary!'
git clean -xf
- name: Create Pull Request