4646 pint --parallel --test
4747 fi
4848
49+ - name : Collect changed files
50+ if : env.CAN_FIX == true
51+ id : changed_php
52+ run : |
53+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
54+ git ls-files -m > changed.txt || true
55+
56+ if [ -s changed.txt ]; then
57+ echo "files<<EOF" >> "$GITHUB_OUTPUT"
58+ cat changed.txt >> "$GITHUB_OUTPUT"
59+ echo "EOF" >> "$GITHUB_OUTPUT"
60+ fi
61+
62+ - name : Upload changed files
63+ if : env.CAN_FIX == true && steps.changed_php.outputs.files != ''
64+ uses : actions/upload-artifact@v4
65+ with :
66+ name : fixes-php
67+ path : ${{ steps.changed_php.outputs.files }}
68+
4969 node :
5070 name : Node
5171 runs-on : ubuntu-latest
@@ -105,6 +125,26 @@ jobs:
105125 rm package.json
106126 rm package-lock.json
107127
128+ - name : Collect changed files
129+ if : env.CAN_FIX == true
130+ id : changed_node
131+ run : |
132+ git config --global --add safe.directory "$GITHUB_WORKSPACE"
133+ git ls-files -m > changed.txt || true
134+
135+ if [ -s changed.txt ]; then
136+ echo "files<<EOF" >> "$GITHUB_OUTPUT"
137+ cat changed.txt >> "$GITHUB_OUTPUT"
138+ echo "EOF" >> "$GITHUB_OUTPUT"
139+ fi
140+
141+ - name : Upload changed files
142+ if : env.CAN_FIX == true && steps.changed_node.outputs.files != ''
143+ uses : actions/upload-artifact@v4
144+ with :
145+ name : fixes-node
146+ path : ${{ steps.changed_node.outputs.files }}
147+
108148 pr :
109149 needs :
110150 - php
@@ -118,8 +158,15 @@ jobs:
118158 steps :
119159 - uses : actions/checkout@v5
120160
161+ - name : Download all artifacts and merge
162+ uses : actions/download-artifact@v5
163+ with :
164+ merge-multiple : true
165+ path : .
166+
121167 - name : Create a Pull Request
122168 uses : peter-evans/create-pull-request@v7
169+ if : ${{ !cancelled() }}
123170 with :
124171 branch : code-style
125172 branch-suffix : random
0 commit comments