Skip to content

Commit

Permalink
ci regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
krukonshedul committed Dec 3, 2024
1 parent 9475f03 commit ae540a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ jobs:
echo ""
git show HEAD~1:mix.exs > mix.old.exs
diff mix.old.exs mix.exs > diff.txt || true
old_version=$(grep -oP 'version: "\K[^"]+' mix.old.exs)
new_version=$(grep -oP 'version: "\K[^"]+' mix.exs)
old_version=$(grep -oP 'version "\K[^"]+' mix.old.exs)
new_version=$(grep -oP 'version "\K[^"]+' mix.exs)
echo "Old Version: $old_version | New Version: $new_version"
if [ "$new_version" != "$old_version" ]; then
if [ "$new_version" \> "$old_version" ]; then
Expand Down

0 comments on commit ae540a8

Please sign in to comment.