Skip to content

Commit 4e19823

Browse files
committed
fix(export-ci-env): tolerate publish-lag window
Install latest published wads (floor >=0.1.48, a version that exists) instead of pinning >=0.1.100 (not yet on PyPI — would fail pip install for every repo pulling @master before wads republishes). The export step no-ops gracefully if the installed wads predates the export_ci_env module.
1 parent ca5a43b commit 4e19823

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

actions/export-ci-env/action.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ runs:
4545

4646
- name: Install wads (for CI env utilities)
4747
shell: bash
48-
run: python -m pip install --quiet 'wads>=0.2.0'
48+
# Install the latest published wads (floor is a version that exists, NOT
49+
# the one that first shipped this module — pinning a not-yet-published
50+
# version would make `pip install` fail during the publish-lag window
51+
# after a wads merge). The run step below no-ops if the installed wads is
52+
# too old to contain export_ci_env, so it is safe across that window.
53+
run: python -m pip install --quiet --upgrade 'wads>=0.1.48'
4954

5055
- name: Export configured environment
5156
shell: bash
@@ -56,4 +61,9 @@ runs:
5661
WADS_ENV_DEFAULTS: ${{ inputs.defaults }}
5762
WADS_ENV_ALIASES: ${{ inputs.aliases }}
5863
WADS_SECRETS_JSON: ${{ inputs.secrets-json }}
59-
run: python -m wads.scripts.export_ci_env
64+
run: |
65+
if python -c "import wads.scripts.export_ci_env" 2>/dev/null; then
66+
python -m wads.scripts.export_ci_env
67+
else
68+
echo "::notice::installed wads lacks export_ci_env (pre-0.1.100); skipping env export until wads publishes."
69+
fi

0 commit comments

Comments
 (0)