diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 2b440e3c..5ddb25f6 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -43,6 +43,16 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Clean up condarc for release builds + run: | + GIT_DESCRIBE_TAG="$(git describe --tags --abbrev=0)" + GIT_DESCRIBE_TAG="${GIT_DESCRIBE_TAG:1}" #remove leading 'v' + if [[ ! $GIT_DESCRIBE_TAG =~ [a-z] ]]; then + rapids-logger "Most recent tag is for release, removing nightly channels" + sed -i '/nightly/d;/dask\/label\/dev/d' context/condarc + fi - name: Login to DockerHub uses: docker/login-action@v2 with: diff --git a/.github/workflows/build-test-publish-images.yml b/.github/workflows/build-test-publish-images.yml index ab75f6a8..156ae178 100644 --- a/.github/workflows/build-test-publish-images.yml +++ b/.github/workflows/build-test-publish-images.yml @@ -43,6 +43,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Compute matrix id: compute-matrix run: | @@ -138,6 +140,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Login to DockerHub uses: docker/login-action@v2 with: diff --git a/.github/workflows/test-image.yml b/.github/workflows/test-image.yml index 6b6708d2..9f979daf 100644 --- a/.github/workflows/test-image.yml +++ b/.github/workflows/test-image.yml @@ -76,6 +76,8 @@ jobs: run: rapids-mamba-retry install -n base --freeze-installed git - name: Checkout code uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Get RAPIDS GitHub Info id: get-rapids-github-info uses: rapidsai/shared-action-workflows/rapids-github-info@branch-23.06