You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by ke...@apache.org on 2026/03/31 17:14:52 UTC
(iceberg-python) branch main updated: ci: fix nightly and release (#3215)
This is an automated email from the ASF dual-hosted git repository.
kevinjqliu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-python.git
The following commit(s) were added to refs/heads/main by this push:
new 39e08a14a ci: fix nightly and release (#3215)
39e08a14a is described below
commit 39e08a14a6198bc8ac97bc5aa753e49806116ec4
Author: Kevin Liu <ke...@users.noreply.github.com>
AuthorDate: Tue Mar 31 10:14:42 2026 -0700
ci: fix nightly and release (#3215)
<!--
Thanks for opening a pull request!
-->
<!-- In the case this PR will resolve an issue, please replace
${GITHUB_ISSUE_ID} below with the actual Github issue id. -->
<!-- Closes #${GITHUB_ISSUE_ID} -->
# Rationale for this change
Follow up to #3193
env vars does not play nice with windows os (because the default shell
is powershell). We need to set to bash so that env vars are interpreted
correctly
## Are these changes tested?
Yes
Ran on fork
nightly:
https://github.com/kevinjqliu/iceberg-python/actions/runs/23805622644
release:
https://github.com/kevinjqliu/iceberg-python/actions/runs/23805619712
## Are there any user-facing changes?
<!-- In the case of user-facing changes, please add the changelog label.
-->
---
.github/workflows/nightly-pypi-build.yml | 4 +++-
.github/workflows/pypi-build-artifacts.yml | 1 +
.github/workflows/python-release.yml | 3 +++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/nightly-pypi-build.yml b/.github/workflows/nightly-pypi-build.yml
index c50171f1d..647c3b7ba 100644
--- a/.github/workflows/nightly-pypi-build.yml
+++ b/.github/workflows/nightly-pypi-build.yml
@@ -29,7 +29,7 @@ permissions:
jobs:
set-version:
- if: github.repository == 'apache/iceberg-python' # Only run for apache repo
+ if: github.repository == 'apache/iceberg-python' || github.event_name == 'workflow_dispatch' # Run on schedule for apache repo, or on manual dispatch from any repo
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.set-version.outputs.VERSION }}
@@ -55,6 +55,7 @@ jobs:
- name: Debug version
run: echo "Publishing version ${STEPS_SET_VERSION_OUTPUTS_VERSION}"
+ shell: bash
env:
STEPS_SET_VERSION_OUTPUTS_VERSION: ${{ steps.set-version.outputs.VERSION }}
@@ -65,6 +66,7 @@ jobs:
version: ${{ needs.set-version.outputs.VERSION }}
testpypi-publish:
name: Publish to TestPypi
+ if: github.repository == 'apache/iceberg-python' # Only run for apache repo
needs:
- nightly-build
runs-on: ubuntu-latest
diff --git a/.github/workflows/pypi-build-artifacts.yml b/.github/workflows/pypi-build-artifacts.yml
index 56f50b7cd..c09ca4c5e 100644
--- a/.github/workflows/pypi-build-artifacts.yml
+++ b/.github/workflows/pypi-build-artifacts.yml
@@ -56,6 +56,7 @@ jobs:
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
- name: Set version with RC
+ shell: bash
env:
VERSION: ${{ inputs.VERSION }}
run: uv version "$VERSION"
diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml
index 17bb37a12..4aa907316 100644
--- a/.github/workflows/python-release.yml
+++ b/.github/workflows/python-release.yml
@@ -81,6 +81,7 @@ jobs:
# Export variables for future steps
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "RC=$RC" >> $GITHUB_OUTPUT
+ shell: bash
env:
GITHUB_EVENT_INPUTS_VERSION: ${{ github.event.inputs.version }}
GITHUB_EVENT_INPUTS_RC: ${{ github.event.inputs.rc }}
@@ -89,6 +90,7 @@ jobs:
run: |
echo "Using Version: ${STEPS_VALIDATE_INPUTS_OUTPUTS_VERSION}"
echo "Using RC: ${STEPS_VALIDATE_INPUTS_OUTPUTS_RC}"
+ shell: bash
env:
STEPS_VALIDATE_INPUTS_OUTPUTS_VERSION: ${{ steps.validate-inputs.outputs.VERSION }}
STEPS_VALIDATE_INPUTS_OUTPUTS_RC: ${{ steps.validate-inputs.outputs.RC }}
@@ -113,6 +115,7 @@ jobs:
enable-cache: false
- name: Validate current pyiceberg version
+ shell: bash
env:
VERSION: ${{ needs.validate-inputs.outputs.VERSION }}
run: |