Skip to content

Commit

Permalink
Update and rename blank.yml to version_change_check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hkadayam authored Mar 8, 2024
1 parent 51ba3e1 commit a866e0b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a866e0b

Please sign in to comment.