File tree Expand file tree Collapse file tree 1 file changed +118
-0
lines changed
Expand file tree Collapse file tree 1 file changed +118
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Split Packages"
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ env :
9+ GITHUB_TOKEN : ${{ secrets.BOT }}
10+ CORE_VERSION : " self.version" "
11+
12+ jobs:
13+ packages_split:
14+ runs-on: ubuntu-latest
15+
16+ strategy:
17+ fail-fast: false
18+ matrix:
19+ package:
20+ - audit
21+ - backup-server
22+ - base-theme
23+ - build
24+ - cart
25+ - category
26+ - clipboard
27+ - components
28+ - core
29+ - customer
30+ - data
31+ - devlink
32+ - devops
33+ - draft
34+ - expiry
35+ - featherlight
36+ - file-icons
37+ - flag-icons-circle
38+ - flag-icons-origin
39+ - flag-icons-rect
40+ - flag-icons-square
41+ - forge
42+ - frontend
43+ - github
44+ - google-icons
45+ - impersonate
46+ - item
47+ - jobs
48+ - json
49+ - laravel-icons
50+ - localization
51+ - login-link
52+ - markdown
53+ - media
54+ - module
55+ - news
56+ - notifications
57+ - package-registry
58+ - packages
59+ - packagist
60+ - page
61+ - passkey
62+ - permission
63+ - post
64+ - press
65+ - product
66+ - progress
67+ - publish
68+ - record
69+ - restore
70+ - security
71+ - seo
72+ - skeleton
73+ - slug
74+ - tag
75+ - taxonomy
76+ - trainings
77+ - user
78+ - user-device
79+ - user-session
80+ - website
81+ - wishlist
82+
83+
84+ steps:
85+ - uses: actions/checkout@v4
86+
87+ # Search and replace " moox/core": "*" with "moox/core": "self.version"" in composer.json
88+ - name : Replace core version in composer.json
89+ working-directory : packages/${{ matrix.package }}
90+ run : |
91+ if [ -f composer.json ]; then
92+ echo "Updating moox/core version in ${{ matrix.package }}"
93+ sed -i 's/"moox\/core": "\*"/"moox\/core": "^self.version""/g' composer.json
94+ fi
95+
96+ # Commit the updated composer.json (if there was a change)
97+ - name : Commit changes
98+ working-directory : packages/${{ matrix.package }}
99+ run : |
100+ if [ -f composer.json ]; then
101+ git config --global user.name "mooxbot"
102+ git config --global user.email "[email protected] " 103+ git add composer.json
104+ git commit -m "Update moox/core dependency to ^self.version"" || echo "No changes to commit"
105+ fi
106+
107+ - if : ${{ !startsWith(github.ref, 'refs/tags/') }}
108+ uses :
" symplify/[email protected] " 109+ with :
110+ tag : ${GITHUB_REF#refs/tags/}
111+
112+ package_directory : " packages/${{ matrix.package }}"
113+
114+ repository_organization : " mooxphp"
115+ repository_name : " ${{ matrix.package }}"
116+
117+ user_name : " mooxbot"
118+
You can’t perform that action at this time.
0 commit comments