Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Use targeted fetch instead of full clone (#71350)

github-automation-metabasee66fff337a0d
diff --git a/.github/workflows/containerize-jar.yml b/.github/workflows/containerize-jar.yml
index 70aa0d7b436..762e3f2234a 100644
--- a/.github/workflows/containerize-jar.yml
+++ b/.github/workflows/containerize-jar.yml
@@ -55,9 +55,11 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
- fetch-depth: 0
+ fetch-depth: 1
# we want the dockerfile from the commit we're building
- - run: git checkout ${{ inputs.commit }} -- bin/docker
+ - run: |
+ git fetch --depth=1 origin ${{ inputs.commit }}
+ git checkout ${{ inputs.commit }} -- bin/docker
- name: Retrieve uberjar artifact
uses: ./.github/actions/fetch-artifact
with: