File tree Expand file tree Collapse file tree 1 file changed +23
-9
lines changed Expand file tree Collapse file tree 1 file changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -560,15 +560,6 @@ jobs:
560
560
name : ${{ matrix.name }}-${{ matrix.build }}
561
561
path : ./build/dist
562
562
563
- conclusion :
564
- name : Conclusion
565
- needs : build
566
- runs-on : ubuntu-latest
567
- steps :
568
- # this job is simply used for branch protection rules so we don't have to add every matrix combination
569
- - name : Check build status
570
- run : echo "Build succeeded"
571
-
572
563
update_dist :
573
564
# only the commit is conditional, so the rest of the job can be verified on PRs
574
565
name : Update dist
@@ -593,9 +584,32 @@ jobs:
593
584
with :
594
585
path : dist/dist
595
586
587
+ - name : Arrange dist
588
+ working-directory : dist/dist
589
+ run : |
590
+ for dir in */; do
591
+ dir="${dir%/}"
592
+ new_name="${dir%-*}"
593
+ if [[ "${dir}" != "${new_name}" ]]; then
594
+ if [[ -d "${new_name}" ]]; then
595
+ rsync -a "${dir}/" "${new_name}/"
596
+ rm -rf "${dir}"
597
+ else
598
+ mv "${dir}" "${new_name}"
599
+ fi
600
+ fi
601
+ done
602
+
596
603
- name : Debug dist directory
597
604
run : ls -R dist
598
605
606
+ - name : Show git diff
607
+ working-directory : dist/dist
608
+ run : |
609
+ git add --all
610
+ echo "Changed files:" >> "${GITHUB_STEP_SUMMARY}"
611
+ git diff --cached --name-only >> "${GITHUB_STEP_SUMMARY}"
612
+
599
613
- name : Extract first line of commit message
600
614
id : commit_message
601
615
env :
You can’t perform that action at this time.
0 commit comments