Compare to dist-workspace instead of pyproject during Docker tag check (#42)

This commit is contained in:
Zanie Blue 2025-05-05 17:29:48 -05:00 committed by GitHub
parent 8650b366e7
commit a9ce032a63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,9 +51,9 @@ jobs:
env:
TAG: ${{ inputs.plan != '' && fromJson(inputs.plan).announcement_tag || 'dry-run' }}
run: |
version=$(grep -m 1 "^version = " pyproject.toml | sed -e 's/version = "\(.*\)"/\1/g')
version=$(grep -m 1 "^version = " dist-workspace.toml | sed -e 's/version = "\(.*\)"/\1/g')
if [ "${TAG}" != "${version}" ]; then
echo "The input tag does not match the version from pyproject.toml:" >&2
echo "The input tag does not match the version from dist-workspace.toml:" >&2
echo "${TAG}" >&2
echo "${version}" >&2
exit 1