Skip to content

Commit

Permalink
Merge pull request #35 from alexv-smirnov/cmm
Browse files Browse the repository at this point in the history
Conflicts on CMakeLists
  • Loading branch information
alexv-smirnov authored Dec 5, 2024
2 parents fb2c723 + 8b89ece commit 3e2d541
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/sync_cmakebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ jobs:
mainsha=$(git rev-parse HEAD)
git checkout cmakebuild
prevsha=$(git rev-parse HEAD)
conflicts_file=$(mktemp)
git merge main --no-commit --no-ff main | true > $conflicts_file
git reset HEAD --hard
if [ -s $conflicts_file ];then
echo Conflicts detected, trying to remove referenced CMakeLists* files
grep -E -o '\s\S*CMakeLists\S*\s' $conflicts_file | xargs rm
git add .
git commit -m "Remove conflicted CMakeLists"
fi
git merge main --no-edit
currsha=$(git rev-parse HEAD)
if [ ${prevsha} == ${currsha} ];then
Expand Down

0 comments on commit 3e2d541

Please sign in to comment.