Skip to content

v5.0.0.dev1

v5.0.0.dev1 #1

name: Released Version Check
on:
release:
types: [published]
workflow_dispatch:
jobs:
check-stable-resolution:
runs-on: ubuntu-latest
steps:
- name: Wait for PyPI indexing
run: sleep 180
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install from PyPI (no --pre)
run: |
python -m venv /tmp/check-venv
/tmp/check-venv/bin/pip install salesforce-data-customcode
- name: Verify resolved version is stable
run: |
VERSION=$(/tmp/check-venv/bin/pip show salesforce-data-customcode | grep ^Version: | awk '{print $2}')
echo "Resolved version: $VERSION"
if echo "$VERSION" | grep -qE '(\.dev|a|b|rc)[0-9]+'; then
echo "::error::pip install (no --pre) resolved to pre-release version: $VERSION"
exit 1
fi
echo "Version $VERSION is stable."