Skip to content

Update dependency filament/filament to v4.0.0-beta13 #2096

Update dependency filament/filament to v4.0.0-beta13

Update dependency filament/filament to v4.0.0-beta13 #2096

name: "Split Packages"
on:
push:
branches: [main]
env:
GITHUB_TOKEN: ${{ secrets.BOT }}
CORE_VERSION: "self.version""
jobs:
packages_split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- audit
- backup-server
- base-theme
- build
- cart
- category
- clipboard
- components
- core
- customer
- data
- devlink
- devops
- draft
- expiry
- featherlight
- file-icons
- flag-icons-circle
- flag-icons-origin
- flag-icons-rect
- flag-icons-square
- forge
- frontend
- github
- google-icons
- impersonate
- item
- jobs
- json
- laravel-icons
- localization
- login-link
- markdown
- media
- module
- news
- notifications
- package-registry
- packages
- packagist
- page
- passkey
- permission
- post
- press
- product
- progress
- publish
- record
- restore
- security
- seo
- skeleton
- slug
- tag
- taxonomy
- trainings
- user
- user-device
- user-session
- website
- wishlist
steps:
- uses: actions/checkout@v4
# Search and replace "moox/core": "*" with "moox/core": "self.version"" in composer.json

Check failure on line 87 in .github/workflows/monorepo-split-packages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/monorepo-split-packages.yml

Invalid workflow file

You have an error in your yaml syntax on line 87
- 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": "^self.version""/g' composer.json
fi
# Commit the updated composer.json (if there was a change)
- name: Commit changes
working-directory: packages/${{ matrix.package }}
run: |
if [ -f composer.json ]; then
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 ^self.version"" || echo "No changes to commit"
fi
- if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: "symplify/[email protected]"
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: "packages/${{ matrix.package }}"
repository_organization: "mooxphp"
repository_name: "${{ matrix.package }}"
user_name: "mooxbot"
user_email: "[email protected]"