diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml index fca3739..06f919b 100644 --- a/.github/workflows/continuous-delivery.yml +++ b/.github/workflows/continuous-delivery.yml @@ -6,7 +6,7 @@ on: jobs: ci: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/Taskfile.yml b/Taskfile.yml index 32a9841..a517d41 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: 'origin/main' + TO: '{{ printf "origin/%v" .GITHUB_HEAD_REF}}' cmds: - - dagger -s call -m github.com/cloudnative-pg/daggerverse/commitlint@${DAGGER_COMMITLINT_SHA} lint --source . --args "--from=origin/main" stdout + - git branch -a + - env + - echo "${FROM}..${TO}" + - npx git-raw-commits --from ${FROM} --to ${TO} + - dagger -s 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 +78,9 @@ tasks: ci: desc: Run the CI pipeline - deps: - - commitlint - - uncommitted + cmds: + - task: commitlint + - task: uncommitted clean: desc: Remove autogenerated artifacts