mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
38 lines
929 B
YAML
38 lines
929 B
YAML
name: Update README
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update-readme:
|
|
name: Update README
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Prepare
|
|
env:
|
|
NVIM_TAG: stable
|
|
run: |
|
|
bash ./scripts/ci-install-ubuntu-latest.sh
|
|
|
|
- name: Check README
|
|
run: |
|
|
git config user.email 'actions@github'
|
|
git config user.name 'Github Actions'
|
|
nvim -l scripts/update-readme.lua || echo 'Needs update'
|
|
git add README.md
|
|
git commit -m 'Update README' || echo 'No commit necessary!'
|
|
git clean -xf
|
|
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v5
|
|
with:
|
|
commit-message: Update README
|
|
title: Update README
|
|
branch: update-readme-pr
|
|
base: ${{ github.head_ref }}
|
|
draft: true
|