Skip to content

API Consolidation

API Consolidation #4

name: Update CMAKE Version
on:
pull_request:
jobs:
checkVersion:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Check out master
uses: actions/checkout@v4
with:
path: master
ref: ${{ github.base_ref }}
- name: Check out current
uses: actions/checkout@v4
with:
path: branch
- name: Compare Version
run: |
masterVersion=$(grep -oP 'project\(\s*[\w-]+\s+VERSION\s+\K[0-9]+\.[0-9]+\.[0-9]+' master/CMakeLists.txt)
branchVersion=$(grep -oP 'project\(\s*[\w-]+\s+VERSION\s+\K[0-9]+\.[0-9]+\.[0-9]+' branch/CMakeLists.txt)
[ "$masterVersion" != "$branchVersion" ]