Fix styling #100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Split Packages" | |
on: | |
push: | |
branches: | |
- main | |
env: | |
GITHUB_TOKEN: ${{ secrets.BOT }} | |
jobs: | |
packages_split: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
package: | |
- backup-server-ui | |
- devops | |
steps: | |
- uses: actions/checkout@v4 | |
# Search and replace "moox/core": "*" with "moox/core": "^2.1.6" 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.6"/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 ^^2.1.6" || 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]" |