mirror of
https://github.com/astral-sh/ty.git
synced 2025-08-04 17:08:04 +00:00
Compare to dist-workspace
instead of pyproject
during Docker tag check (#42)
This commit is contained in:
parent
8650b366e7
commit
a9ce032a63
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build-docker.yml
vendored
4
.github/workflows/build-docker.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue