mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
ci: update workflows
This commit is contained in:
parent
f8bc6c69d7
commit
1a4116aef1
3 changed files with 12 additions and 20 deletions
14
.github/workflows/update-readme.yml
vendored
14
.github/workflows/update-readme.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue