add support for Codestral by Mistral (#17) #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: autogen | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "lua/**.lua" | |
- "examples/**.lua" | |
- "stylua.toml" | |
- "README.md" | |
- ".github/workflows/*.yml" | |
# Cancel any in-progress CI runs for a PR if it is updated | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
autogen: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 10 | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: panvimdoc | |
uses: kdheepak/[email protected] | |
with: | |
vimdoc: cmp-ai | |
description: AI source for nvim-cmp | |
- name: Apply stylua | |
uses: JohnnyMorganz/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: --config-path=stylua.toml lua/ | |
version: 0.14.1 | |
- name: Push changes | |
if: ${{ !env.ACT }} | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "chore(build): auto-generate vimdoc / stylua" | |
commit_user_name: "github-actions[bot]" | |
commit_user_email: "github-actions[bot]@users.noreply.github.com" | |
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>" |