diff --git a/.github/workflows/blank.yml b/.github/workflows/version_change_check.yml similarity index 57% rename from .github/workflows/blank.yml rename to .github/workflows/version_change_check.yml index 54b7adc6..5b48ce2d 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/version_change_check.yml @@ -15,7 +15,9 @@ jobs: - name: Check if file is modified run: | if [[ $(git diff --name-only ${{ github.base_ref }}..${{ github.sha }}) == *conanfile.py* ]]; then - echo "File is modified" + if git diff --unified=0 ${{ github.base_ref }}..${{ github.sha }} *conanfile.py* | grep -q "^+.*version"; then + echo "Version is updated with this PR, OK" else - echo "File is not modified" + echo "Conan version is not updated with this PR. Please update that to allow PR merge" + exit 1 fi