Debug the shell code

This commit is contained in:
tcely 2025-03-26 22:07:17 -04:00 committed by GitHub
parent 41f37bcd65
commit b30d0ce88f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,17 +38,18 @@ jobs:
id: lowercase-variables id: lowercase-variables
shell: bash shell: bash
run: | run: |
set -x ;
set_sl_var() { local f='%s=%s\n' ; printf -- "${f}" "$@" ; } ; set_sl_var() { local f='%s=%s\n' ; printf -- "${f}" "$@" ; } ;
for var in \ for var in \
actor='${{ github.actor }}' \ actor='${{ github.actor }}' \
repository_owner='${{ github.repository_owner }}' repository_owner='${{ github.repository_owner }}'
do do
k="$(cut -d '=' -f 1)" k="$(cut -d '=' -f 1)" ;
v="${var#${k}=}" v="${var#${k}=}" ;
set_sl_var >> "${GITHUB_OUTPUT}" \ set_sl_var >> "${GITHUB_OUTPUT}" \
"${k}" "${v,,}" "${k}" "${v,,}" ;
done done ;
unset -v k v var unset -v k v var ;
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Retrieve yt-dlp/FFmpeg-Builds releases with GitHub CLI - name: Retrieve yt-dlp/FFmpeg-Builds releases with GitHub CLI
id: ffmpeg id: ffmpeg