From ae2bdc063d72507eb784f0df0a26eac2386a1f41 Mon Sep 17 00:00:00 2001 From: Harihara Kadayam Date: Mon, 8 Apr 2024 07:36:44 -0700 Subject: [PATCH] Update version_change_check.yml --- .github/workflows/version_change_check.yml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/version_change_check.yml diff --git a/.github/workflows/version_change_check.yml b/.github/workflows/version_change_check.yml new file mode 100644 index 000000000..c83adecdf --- /dev/null +++ b/.github/workflows/version_change_check.yml @@ -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