2022-03-25 14:55:53 +01:00
|
|
|
name: plugins-version-bump
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
logLevel:
|
|
|
|
description: 'Log level'
|
|
|
|
required: false
|
|
|
|
default: 'warning'
|
|
|
|
type: choice
|
|
|
|
options:
|
|
|
|
- info
|
|
|
|
- warning
|
|
|
|
- debug
|
|
|
|
schedule:
|
2022-04-02 12:22:32 +02:00
|
|
|
# note: this will keep updating the existing branch
|
2023-10-21 15:00:35 +02:00
|
|
|
- cron: "0 10-14 * * 0,6"
|
2022-04-02 12:22:32 +02:00
|
|
|
- cron: "0 14 * * 1-5"
|
2022-03-25 14:55:53 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
plugins-version-bump:
|
2022-12-11 16:18:29 +01:00
|
|
|
if: github.repository_owner == 'LunarVim'
|
2022-03-25 14:55:53 +01:00
|
|
|
runs-on: ubuntu-latest
|
2022-10-29 18:23:34 +02:00
|
|
|
continue-on-error: false
|
2022-03-25 14:55:53 +01:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2022-04-02 12:22:32 +02:00
|
|
|
pull-requests: write
|
2022-03-25 14:55:53 +01:00
|
|
|
steps:
|
2022-10-15 18:32:11 +02:00
|
|
|
- uses: actions/checkout@v3
|
2022-03-25 14:55:53 +01:00
|
|
|
|
|
|
|
- name: Install neovim binary
|
|
|
|
uses: rhysd/action-setup-vim@v1
|
|
|
|
with:
|
|
|
|
neovim: true
|
2023-05-13 19:09:00 +02:00
|
|
|
version: stable
|
2022-03-25 14:55:53 +01:00
|
|
|
|
|
|
|
- name: Install LunarVim
|
|
|
|
timeout-minutes: 4
|
|
|
|
run: |
|
|
|
|
./utils/installer/install.sh --local --no-install-dependencies
|
|
|
|
|
|
|
|
- name: run upgrade script
|
|
|
|
run: make generate_new_lockfile
|
|
|
|
|
|
|
|
- name: Re-install LunarVim
|
|
|
|
timeout-minutes: 4
|
|
|
|
run: |
|
2023-05-07 18:20:24 +02:00
|
|
|
./utils/installer/uninstall.sh --remove-backups --remove-config
|
2022-03-25 14:55:53 +01:00
|
|
|
./utils/installer/install.sh --local --no-install-dependencies
|
|
|
|
|
|
|
|
- name: Run unit-tests
|
|
|
|
# NOTE: make sure to adjust the timeout if you start adding a lot of tests
|
|
|
|
timeout-minutes: 4
|
|
|
|
run: make test
|
|
|
|
|
|
|
|
- name: Create Pull Request
|
|
|
|
uses: peter-evans/create-pull-request@v4
|
|
|
|
with:
|
|
|
|
branch: plugins-bump
|
|
|
|
delete-branch: true # Delete the branch when closing pull requests, and when undeleted after merging.
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2022-04-02 13:49:04 +02:00
|
|
|
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
2022-03-25 14:55:53 +01:00
|
|
|
title: "chore: bump plugins version"
|
2022-03-26 14:28:31 +01:00
|
|
|
commit-message: "chore: bump plugins version"
|