Skip to content

Commit

Permalink
ci: shallow lock error
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Canovai <[email protected]>
  • Loading branch information
fcanovai committed Jun 27, 2024
1 parent bc2fa7a commit 9560c0a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 10 additions & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -72,9 +78,9 @@ tasks:

ci:
desc: Run the CI pipeline
deps:
- commitlint
- uncommitted
cmds:
- task: commitlint
- task: uncommitted

clean:
desc: Remove autogenerated artifacts
Expand Down

0 comments on commit 9560c0a

Please sign in to comment.