We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5ffb40 commit 9058937Copy full SHA for 9058937
.github/workflows/build-docker.yml
@@ -51,7 +51,7 @@ jobs:
51
env:
52
TAG: ${{ inputs.plan != '' && fromJson(inputs.plan).announcement_tag || 'dry-run' }}
53
run: |
54
- version=$(grep "version = " pyproject.toml | sed -e 's/version = "\(.*\)"/\1/g')
+ version=$(grep -m 1 "^version = " pyproject.toml | sed -e 's/version = "\(.*\)"/\1/g')
55
if [ "${TAG}" != "${version}" ]; then
56
echo "The input tag does not match the version from pyproject.toml:" >&2
57
echo "${TAG}" >&2
0 commit comments