mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
Bumps the actions group with 1 update: [actions/create-github-app-token](https://github.com/actions/create-github-app-token). Updates `actions/create-github-app-token` from 2 to 3 - [Release notes](https://github.com/actions/create-github-app-token/releases) - [Commits](https://github.com/actions/create-github-app-token/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/create-github-app-token dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
60 lines
1.8 KiB
YAML
60 lines
1.8 KiB
YAML
name: Update parsers
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "30 6 * * 6"
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
BIN_DIR: ${{ github.workspace }}/bin
|
|
|
|
jobs:
|
|
update-parsers:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
tier: [1, 2]
|
|
name: Update parsers tier ${{ matrix.tier }}
|
|
runs-on: ubuntu-slim
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
ref: main
|
|
|
|
- uses: actions/create-github-app-token@v3
|
|
id: app-token
|
|
with:
|
|
app-id: ${{ vars.TOKEN_ID }}
|
|
private-key: ${{ secrets.TOKEN_PRIVATE_KEY }}
|
|
|
|
- name: Add $BIN_DIR to PATH
|
|
run: echo "$BIN_DIR" >> $GITHUB_PATH
|
|
|
|
- name: Prepare
|
|
env:
|
|
NVIM_TAG: nightly
|
|
run: |
|
|
bash scripts/ci-install.sh
|
|
wget --directory-prefix="$BIN_DIR" https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-linux-x86_64.zip
|
|
(cd "$BIN_DIR"; unzip stylua*.zip)
|
|
|
|
- name: Update parsers
|
|
run: ./scripts/update-parsers.lua --tier=${{ matrix.tier }}
|
|
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v8
|
|
with:
|
|
add-paths: lua/nvim-treesitter/parsers.lua
|
|
token: ${{ steps.app-token.outputs.token }}
|
|
sign-commits: true
|
|
commit-message: "bot(parsers): update ${{ env.UPDATED_PARSERS }}"
|
|
title: "Update parsers (tier ${{ matrix.tier }}): ${{ env.UPDATED_PARSERS }}"
|
|
body: "[beep boop](https://github.com/peter-evans/create-pull-request)"
|
|
branch: update-parsers-tier-${{ matrix.tier }}
|
|
base: ${{ github.head_ref }}
|
|
|
|
- name: Enable Pull Request Automerge
|
|
if: ${{ matrix.tier == 2 }}
|
|
env:
|
|
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
run: gh pr merge --rebase --auto update-parsers-tier-2
|