Skip to content

Commit

Permalink
ci: limit doc generation to merges on main
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed May 30, 2024
1 parent 42cd6fd commit 86cfc69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: ["main"]
branches: ['main']
pull_request:
workflow_dispatch:

Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/panvimdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ name: Generate Documentation

on:
push:
branches: ["main"]
branches: ['main']
paths:
- "README.md"
pull_request:
paths:
- "README.md"
- 'README.md'
workflow_dispatch:

jobs:
Expand All @@ -20,10 +17,10 @@ jobs:
with:
vimdoc: tabs-vs-spaces
description: Hint and fix deviating indentation.
version: "Neovim >= 0.8.0"
version: 'Neovim >= 0.8.0'
demojify: true
- name: Commit docs
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "docs: auto generate vim docs"
commit_message: 'docs: auto generate vim docs'
branch: ${{ github.head_ref }}

0 comments on commit 86cfc69

Please sign in to comment.