File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,16 @@ jobs:
1616 uses : actions/checkout@v4
1717 with :
1818 path : master
19- ref : ' '
19+ ref : ' master '
2020
2121 - name : Check out current
2222 uses : actions/checkout@v4
2323 with :
24- path : current
24+ path : branch
2525
2626 - name : Compare Version
2727 run : |
28- version1=$(grep -oP 'project\(\s*[\w-]+\s+VERSION\s+\K[0-9]+\.[0-9]+\.[0-9]+' master/CMakeLists.txt)
29- version2=$(grep -oP 'project\(\s*[\w-]+\s+VERSION\s+\K[0-9]+\.[0-9]+\.[0-9]+' current/CMakeLists.txt)
30- echo $version1
31- echo $version2
28+ masterVersion=$(grep -oP 'project\(\s*[\w-]+\s+VERSION\s+\K[0-9]+\.[0-9]+\.[0-9]+' master/CMakeLists.txt)
29+ branchVersion=$(grep -oP 'project\(\s*[\w-]+\s+VERSION\s+\K[0-9]+\.[0-9]+\.[0-9]+' branch/CMakeLists.txt)
30+ [ "$masterVersion" != "$branchVersion" ]
3231
You can’t perform that action at this time.
0 commit comments