diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ee6c8ccc..e472951d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -91,6 +91,17 @@ jobs: steps: - uses: actions/download-artifact@v2 + - run: | + ls -AbQR1p * | # paths in "quoted" \escaped format + sed -n '/":$/,${/.[^/]$/p}' | # skip files in pwd, blank and dir/ lines + { bwd="$PWD"; while read -n1; # save base dir strip leading "quote + read -r p; do # read path + printf -vs "${p%\"*}" # strip trailing quote"(:) + [[ $p == *: ]] && { # this is a directory + cd "$bwd/$s" # change into new directory + rnp="${s//\//-}"- # relative name prefix + } || mv "$s" "$bwd/$rnp$s"; done; } + - name: Release uses: softprops/action-gh-release@v1 if: github.event_name == 'push'