-
Notifications
You must be signed in to change notification settings - Fork 17
39 lines (39 loc) · 1.11 KB
/
docs.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
name: Docs
on:
push:
branches: [main]
schedule:
- cron: '0 0 * * 0'
jobs:
docs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v2
with:
repository: neovim/neovim-ruby
- uses: ruby/setup-ruby@v1
with:
ruby-version: head
- name: Install libfuse
run: sudo apt install libfuse2
- name: Bundle install
run: |
bundle config set path vendor/bundle
bundle install --jobs 3 --retry 3
- name: Install Neovim
run: bundle exec rake ci:download_nvim
- name: Generate docs
env:
NVIM_EXECUTABLE: "_nvim/bin/nvim"
run: bundle exec rake docs:generate
- name: Open pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "[skip ci] Update generated docs"
author: Docs Workflow <[email protected]>
title: "Update generated docs"