Skip to content

Commit

Permalink
Tune again
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjong committed Oct 9, 2024
1 parent 4bac603 commit 36d0849
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dockerfile_version_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ jobs:
IFS='.' read -r current_major current_minor current_patch <<< "$version_on_main"
# Check if the image version for this image_name has been incremented in this PR
version_this_branch=$(grep -oP "image: .*/$image_name:v\K[0-9]+\.[0-9]+\.[0-9]+" docker-compose.yaml)
version_this_branch=$(git diff origin/${{ github.base_ref }}...HEAD -- docker-compose.yaml | grep -oP "image: .*/$image_name:v\K[0-9]+\.[0-9]+\.[0-9]+")
# if [ -z "$version_this_branch" ]; then
# echo "::error::Dockerfile for $image_name was modified but image version in docker-compose.yaml was not updated."
# exit 1
# fi
if [ -z "$version_this_branch" ]; then
echo "::error::Dockerfile for $image_name was modified but image version in docker-compose.yaml was not updated."
exit 1
fi
echo "version_this_branch=$new_version"
Expand Down

0 comments on commit 36d0849

Please sign in to comment.