From 9560c0a0fc57af0b2cf1f5995bec139e8df50ca0 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 --- .github/workflows/continuous-delivery.yml | 3 +-- Taskfile.yml | 14 ++++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml index fca3739..102c8d1 100644 --- a/.github/workflows/continuous-delivery.yml +++ b/.github/workflows/continuous-delivery.yml @@ -6,14 +6,13 @@ on: jobs: ci: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v4 # We need the full history for the commitlint task with: fetch-depth: 0 - ref: ${{ github.event.pull_request.head.sha }} - name: Install Task uses: arduino/setup-task@v2 - name: Install Dagger diff --git a/Taskfile.yml b/Taskfile.yml index 32a9841..2c6ca27 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -54,8 +54,14 @@ tasks: env: # renovate: datasource=git-refs depName=commitlint lookupName=https://github.com/cloudnative-pg/daggerverse currentValue=main DAGGER_COMMITLINT_SHA: f09d41cb90701db446048a9f20eb03495e50f727 + FROM: '{{ .GITHUB_BASE_REF | default "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 branch -a + - git log "origin/${FROM}".."${TO}" + - echo "${FROM}..${TO}" + - npx git-raw-commits --from origin/${FROM} --to HEAD + - dagger -s call -m github.com/cloudnative-pg/daggerverse/commitlint@${DAGGER_COMMITLINT_SHA} lint --source . --args "--from=origin/${FROM}" --args "--to=${TO}" stdout uncommitted: desc: Check for uncommitted changes @@ -72,9 +78,9 @@ tasks: ci: desc: Run the CI pipeline - deps: - - commitlint - - uncommitted + cmds: + - task: commitlint + - task: uncommitted clean: desc: Remove autogenerated artifacts