From 0d1faed2e2c666c8369f58d97d013733ceabb1f3 Mon Sep 17 00:00:00 2001 From: Maciej Lebiest Date: Sat, 14 Oct 2023 08:37:17 +0200 Subject: [PATCH] add schedule build for gitea, reduce Lazy concurrency --- .gitea/workflows/oci-image.yml | 6 +++++- lua/lazy-load.lua | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/oci-image.yml b/.gitea/workflows/oci-image.yml index 5cd3ca2..89bf679 100644 --- a/.gitea/workflows/oci-image.yml +++ b/.gitea/workflows/oci-image.yml @@ -1,6 +1,10 @@ name: Gitea Actions Demo run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: [push] +on: + push: + branches: [ "main" ] + schedule: + - cron: '30 12 */3 * *' jobs: Explore-Gitea-Actions: diff --git a/lua/lazy-load.lua b/lua/lazy-load.lua index f41cae3..1f50eee 100644 --- a/lua/lazy-load.lua +++ b/lua/lazy-load.lua @@ -175,7 +175,7 @@ require("lazy").setup({ -- leave nil when passing the spec as the first argument to setup() spec = nil, ---@type LazySpec lockfile = vim.fn.stdpath("config") .. "/lazy-lock.json", -- lockfile generated after running update. - concurrency = 4, ---@type number limit the maximum amount of concurrent tasks + concurrency = 1, ---@type number limit the maximum amount of concurrent tasks git = { -- defaults for the `Lazy log` command -- log = { "-10" }, -- show the last 10 commits