|
62 | 62 | print("Expected format: MODULENAME-YYYY.MM.DD (e.g., php-2025.10.31)") |
63 | 63 | exit(1) |
64 | 64 | |
65 | | - module_name = module_match.group(1) |
| 65 | + module_name = module_match.group(1).lower() |
66 | 66 | print(f"Module name: {module_name}") |
67 | 67 | |
68 | 68 | # Save module name for next steps (do this early in case of errors) |
@@ -122,8 +122,8 @@ jobs: |
122 | 122 | 'filename': filename |
123 | 123 | }) |
124 | 124 | print(f"Found: {filename} -> Version: {ver}") |
125 | | - elif filename.startswith(module_name): |
126 | | - # Standard modules use .7z or .zip and must start with module name |
| 125 | + elif filename.lower().startswith(module_name): |
| 126 | + # Standard modules use .7z or .zip and must start with module name (case-insensitive) |
127 | 127 | if filename.endswith('.7z') or filename.endswith('.zip'): |
128 | 128 | download_url = asset['browser_download_url'] |
129 | 129 | |
@@ -231,25 +231,7 @@ jobs: |
231 | 231 | echo "module_name=unknown" >> $GITHUB_OUTPUT |
232 | 232 | fi |
233 | 233 | |
234 | | - - name: Check for changes |
235 | | - id: check_changes |
236 | | - run: | |
237 | | - echo "Git status:" |
238 | | - git status |
239 | | - echo "" |
240 | | - echo "Git diff:" |
241 | | - git diff |
242 | | - echo "" |
243 | | - if [[ -n $(git status --porcelain) ]]; then |
244 | | - echo "Changes detected!" |
245 | | - echo "changes=true" >> $GITHUB_OUTPUT |
246 | | - else |
247 | | - echo "No changes detected" |
248 | | - echo "changes=false" >> $GITHUB_OUTPUT |
249 | | - fi |
250 | | - |
251 | 234 | - name: Create Pull Request |
252 | | - if: steps.check_changes.outputs.changes == 'true' |
253 | 235 | id: create_pr |
254 | 236 | uses: peter-evans/create-pull-request@v6 |
255 | 237 | with: |
@@ -282,13 +264,13 @@ jobs: |
282 | 264 | module-update |
283 | 265 | |
284 | 266 | - name: Wait for validation checks |
285 | | - if: steps.check_changes.outputs.changes == 'true' && steps.create_pr.outputs.pull-request-number != '' |
| 267 | + if: steps.create_pr.outputs.pull-request-number != '' |
286 | 268 | run: | |
287 | 269 | echo "Waiting for link validation to complete..." |
288 | 270 | sleep 10 |
289 | 271 | |
290 | 272 | - name: Enable auto-merge |
291 | | - if: steps.check_changes.outputs.changes == 'true' && steps.create_pr.outputs.pull-request-number != '' |
| 273 | + if: steps.create_pr.outputs.pull-request-number != '' |
292 | 274 | run: | |
293 | 275 | gh pr merge ${{ steps.create_pr.outputs.pull-request-number }} --auto --squash |
294 | 276 | env: |
|
0 commit comments