docs: add mattrabe as a contributor for code (#728) #1755
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 }} | |
CORE_VERSION: "^3.0.3" | |
jobs: | |
packages_split: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
package: | |
- audit | |
- builder | |
- category | |
- core | |
- expiry | |
- flags | |
- jobs | |
- locate | |
- login-link | |
- notifications | |
- passkey | |
- permission | |
- press | |
- security | |
- skeleton | |
- sync | |
- tag | |
- trainings | |
- user | |
- user-device | |
- user-session | |
steps: | |
- uses: actions/checkout@v4 | |
# Search and replace "moox/core": "*" with "moox/core": "^3.0.3" 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.3"/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 "bot@moox.org" | |
git add composer.json | |
git commit -m "Update moox/core dependency to ^^3.0.3" || echo "No changes to commit" | |
fi | |
- if: "!startsWith(github.ref, 'refs/tags/')" | |
uses: "symplify/monorepo-split-github-action@v2.3.0" | |
with: | |
tag: ${GITHUB_REF#refs/tags/} | |
package_directory: "packages/${{ matrix.package }}" | |
repository_organization: "mooxphp" | |
repository_name: "${{ matrix.package }}" | |
user_name: "mooxbot" | |
user_email: "bot@moox.org" |