From 1697d0c68df1046f7f211550cafe88c1a7244451 Mon Sep 17 00:00:00 2001 From: Francesco Canovai Date: Thu, 27 Jun 2024 14:09:54 +0200 Subject: [PATCH] ci: shallow lock error Signed-off-by: Francesco Canovai --- Taskfile.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 32a9841..1e78e69 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -54,8 +54,12 @@ tasks: env: # renovate: datasource=git-refs depName=commitlint lookupName=https://github.com/cloudnative-pg/daggerverse currentValue=main DAGGER_COMMITLINT_SHA: f09d41cb90701db446048a9f20eb03495e50f727 + FROM: 'origin/main' + TO: 'HEAD' cmds: - - dagger -s call -m github.com/cloudnative-pg/daggerverse/commitlint@${DAGGER_COMMITLINT_SHA} lint --source . --args "--from=origin/main" stdout + - git rev-parse ${FROM} + - git rev-parse ${TO} + - dagger --progress=plain call -m github.com/cloudnative-pg/daggerverse/commitlint@${DAGGER_COMMITLINT_SHA} lint --source . --args "--from=${FROM}" --args "--to=${TO}" stdout uncommitted: desc: Check for uncommitted changes @@ -72,9 +76,9 @@ tasks: ci: desc: Run the CI pipeline - deps: - - commitlint - - uncommitted + cmds: + - task: commitlint + - task: uncommitted clean: desc: Remove autogenerated artifacts