Skip to content

Commit

Permalink
update core version
Browse files Browse the repository at this point in the history
  • Loading branch information
AzGasim committed Dec 5, 2024
1 parent 221f7b0 commit e1a1e50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/monorepo-split-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
GITHUB_TOKEN: ${{ secrets.BOT }}
CORE_VERSION: "^2.1.9"
CORE_VERSION: "^2.2.0"

jobs:
packages_split:
Expand Down Expand Up @@ -40,13 +40,13 @@ jobs:
steps:
- uses: actions/checkout@v4

# Search and replace "moox/core": "*" with "moox/core": "^2.1.9" in composer.json
# Search and replace "moox/core": "*" with "moox/core": "^2.2.0" in composer.json
- name: Replace core version in composer.json
working-directory: packages/${{ matrix.package }}
run: |
if [ -f composer.json ]; then
echo "Updating moox/core version in ${{ matrix.package }}"
sed -i 's/"moox\/core": "\*"/"moox\/core": "^2.1.8"/g' composer.json
sed -i 's/"moox\/core": "\*"/"moox\/core": "^2.2.0"/g' composer.json
fi
# Commit the updated composer.json (if there was a change)
Expand All @@ -57,7 +57,7 @@ jobs:
git config --global user.name "mooxbot"
git config --global user.email "[email protected]"
git add composer.json
git commit -m "Update moox/core dependency to ^^2.1.9" || echo "No changes to commit"
git commit -m "Update moox/core dependency to ^^2.2.0" || echo "No changes to commit"
fi
- if: "!startsWith(github.ref, 'refs/tags/')"
Expand Down

0 comments on commit e1a1e50

Please sign in to comment.