diff options
| -rw-r--r-- | .github/workflows/docgen.yml | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/.github/workflows/docgen.yml b/.github/workflows/docgen.yml index 2d1f8f54..8ff59124 100644 --- a/.github/workflows/docgen.yml +++ b/.github/workflows/docgen.yml @@ -12,16 +12,12 @@ jobs: contents: write steps: - uses: actions/checkout@v2 - - run: date +%F > todays-date - - name: Restore cache for today's nightly. - uses: actions/cache@v2 + - uses: rhysd/action-setup-vim@v1 with: - path: _neovim - key: ${{ runner.os }}-nightly-${{ hashFiles('todays-date') }} - - name: Setup from neovim nightly and run docgen + neovim: true + version: nightly + - name: Run docgen run: | - curl -OL https://raw.githubusercontent.com/norcalli/bot-ci/master/scripts/github-actions-setup.sh - source github-actions-setup.sh nightly-x64 scripts/docgen.sh - name: Commit changes env: @@ -41,21 +37,12 @@ jobs: contents: write steps: - uses: actions/checkout@v2 - - run: date +%F > todays-date - - name: Restore cache for today's nightly. - uses: actions/cache@v2 + - uses: rhysd/action-setup-vim@v1 with: - path: build - key: ${{ runner.os }}-appimage-${{ hashFiles('todays-date') }} - - - name: Setup neovim nightly and install plugins + neovim: true + version: nightly + - name: Install plugins run: | - test -d build || { - mkdir -p build - wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage - chmod +x nvim.appimage - mv nvim.appimage ./build/nvim - } mkdir -p ~/.local/share/nvim/site/pack/vendor/start git clone --depth 1 https://github.com/mjlbach/babelfish.nvim ~/.local/share/nvim/site/pack/vendor/start/babelfish.nvim git clone --depth 1 https://github.com/nvim-treesitter/nvim-treesitter ~/.local/share/nvim/site/pack/vendor/start/nvim-treesitter |
