-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.16 KB
/
gen-html.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Gen html by nvim
on:
push:
branches:
- main
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'Test scenario tags'
jobs:
bootstrap-nvim:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: Prepare
env:
NVIM_TAG: stable
run: |
wget https://github.com/neovim/neovim/releases/download/${NVIM_TAG}/nvim-linux64.tar.gz
tar -zxf nvim-linux64.tar.gz
sudo ln -s "$PWD"/nvim-linux64/bin/nvim /usr/local/bin
cp -r tiny ~/.config/nvim
- name: use nvim tohtml
run: |
nvim --headless +"q"
nvim --headless +":lua require 'vihtml'" +"q"
- name: Push changes
env:
PAT: ${{ secrets.PAT }}
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "[email protected]"
git add src
git commit -m "Auto-update generated HTML files"
git push https://x-access-token:${PAT}@github.com/siduck/neovimthemes.git