From f2370ce9d808119a2d91eeab8fa7fe03d2849529 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Fri, 25 Mar 2022 14:55:53 +0100 Subject: ci: test automated gh action (#2394) --- .github/workflows/plugins.yml | 61 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/plugins.yml (limited to '.github/workflows') diff --git a/.github/workflows/plugins.yml b/.github/workflows/plugins.yml new file mode 100644 index 00000000..f61f8440 --- /dev/null +++ b/.github/workflows/plugins.yml @@ -0,0 +1,61 @@ +name: plugins-version-bump + +on: + workflow_dispatch: + inputs: + logLevel: + description: 'Log level' + required: false + default: 'warning' + type: choice + options: + - info + - warning + - debug + schedule: + - cron: "30 18 * * 1,5" + +jobs: + plugins-version-bump: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v2 + with: + ref: ${{ github.head_ref }} + + - name: Install neovim binary + uses: rhysd/action-setup-vim@v1 + with: + neovim: true + version: v0.6.1 + + - 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: | + ./utils/installer/uninstall.sh --remove-backups + ./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. + base: test-ci + token: ${{ secrets.GITHUB_TOKEN }} + title: "chore: bump plugins version" + commit_message: "chore: bump plugins version" -- cgit v1.2.3 From 5d08a337faa798b67611a1bba545ff5116579da4 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sat, 26 Mar 2022 14:28:31 +0100 Subject: ci: fix workflow inputs (#2397) --- .github/workflows/plugins.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/plugins.yml b/.github/workflows/plugins.yml index f61f8440..56d2a9cc 100644 --- a/.github/workflows/plugins.yml +++ b/.github/workflows/plugins.yml @@ -55,7 +55,6 @@ jobs: with: branch: plugins-bump delete-branch: true # Delete the branch when closing pull requests, and when undeleted after merging. - base: test-ci token: ${{ secrets.GITHUB_TOKEN }} title: "chore: bump plugins version" - commit_message: "chore: bump plugins version" + commit-message: "chore: bump plugins version" -- cgit v1.2.3 From b892b97708db69eb85e88f9ea4292bd83a1c1241 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sat, 2 Apr 2022 12:22:32 +0200 Subject: ci(test): add write-permission for prs (#2417) --- .github/workflows/format.yaml | 5 +++++ .github/workflows/install.yaml | 5 +++++ .github/workflows/lint.yaml | 5 +++++ .github/workflows/plugins.yml | 6 +++++- 4 files changed, 20 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index a7f7d9f8..b63b89d7 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -4,6 +4,11 @@ on: pull_request: branches: - "rolling" + paths: + - 'lua/**' + - 'snapshots/**' + - 'tests/**' + - 'utils/**' jobs: stylua-check: diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 4266896b..6e3685dd 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -5,6 +5,11 @@ on: branches: - "master" - "rolling" + paths: + - 'lua/**' + - 'snapshots/**' + - 'tests/**' + - 'utils/**' jobs: unixish: diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 9746425d..c238a5d1 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -4,6 +4,11 @@ on: pull_request: branches: - "rolling" + paths: + - 'lua/**' + - 'snapshots/**' + - 'tests/**' + - 'utils/**' jobs: lua-linter: diff --git a/.github/workflows/plugins.yml b/.github/workflows/plugins.yml index 56d2a9cc..8f29b0e9 100644 --- a/.github/workflows/plugins.yml +++ b/.github/workflows/plugins.yml @@ -13,13 +13,17 @@ on: - warning - debug schedule: - - cron: "30 18 * * 1,5" + # note: this will keep updating the existing branch + - cron: "*/15 10-14 * * 0,6" + - cron: "0 14 * * 1-5" jobs: plugins-version-bump: runs-on: ubuntu-latest + continue-on-error: true permissions: contents: write + pull-requests: write steps: - uses: actions/checkout@v2 with: -- cgit v1.2.3 From b7d7eed5760fe91e5603479fe5ad934844001682 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sat, 2 Apr 2022 13:49:04 +0200 Subject: ci: use github-actions as the author (#2419) --- .github/workflows/plugins.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.github/workflows') diff --git a/.github/workflows/plugins.yml b/.github/workflows/plugins.yml index 8f29b0e9..ba16ddca 100644 --- a/.github/workflows/plugins.yml +++ b/.github/workflows/plugins.yml @@ -60,5 +60,6 @@ jobs: branch: plugins-bump delete-branch: true # Delete the branch when closing pull requests, and when undeleted after merging. token: ${{ secrets.GITHUB_TOKEN }} + author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> title: "chore: bump plugins version" commit-message: "chore: bump plugins version" -- cgit v1.2.3