Skip to content

Commit

Permalink
Update version_change_check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hkadayam authored Apr 8, 2024
1 parent 477ad3b commit ae2bdc0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/version_change_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Check Version Update

on:
pull_request:
types: [opened, edited, synchronize]

jobs:
check-file:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Check if file is modified
run: |
if git diff -r HEAD^1 HEAD -- conanfile.py | egrep "[ ]+version = "; then
echo "Version is updated with this PR, OK"
else
echo "Conan version is not updated with this PR. Please update that to allow PR merge"
exit 1
fi

0 comments on commit ae2bdc0

Please sign in to comment.