File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -560,15 +560,6 @@ jobs:
560560 name : ${{ matrix.name }}-${{ matrix.build }}
561561 path : ./build/dist
562562
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-
572563 update_dist :
573564 # only the commit is conditional, so the rest of the job can be verified on PRs
574565 name : Update dist
@@ -593,9 +584,32 @@ jobs:
593584 with :
594585 path : dist/dist
595586
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+
596603 - name : Debug dist directory
597604 run : ls -R dist
598605
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+
599613 - name : Extract first line of commit message
600614 id : commit_message
601615 env :
You can’t perform that action at this time.
0 commit comments