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 13, 2024
1 parent 3fc7171 commit f21e621
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: "^3.0.0"
CORE_VERSION: "^3.0.2"

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

# Search and replace "moox/core": "*" with "moox/core": "^3.0.0" in composer.json
# Search and replace "moox/core": "*" with "moox/core": "^3.0.2" 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": "^3.0.0"/g' composer.json
sed -i 's/"moox\/core": "\*"/"moox\/core": "^3.0.2"/g' composer.json
fi
# Commit the updated composer.json (if there was a change)
Expand All @@ -59,7 +59,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 ^^3.0.0" || echo "No changes to commit"
git commit -m "Update moox/core dependency to ^^3.0.2" || echo "No changes to commit"
fi
- if: "!startsWith(github.ref, 'refs/tags/')"
Expand Down

0 comments on commit f21e621

Please sign in to comment.