Skip to content

Commit

Permalink
yt-dlp manage name
Browse files Browse the repository at this point in the history
  • Loading branch information
Haldir65 committed May 16, 2024
1 parent 5d4e603 commit 8a4723c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/setup_yt_dlp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,18 @@ jobs:
tree -L 2
ls -al
- name: figure out video name
shell: bash
id: video-name
run: |
cd dist
echo "${find . -type f \( -name "*.mp4" -o -name "*.mkv" -o -name "*.webm" -o -name "*.m4a" \) -exec basename {} \;}"
echo "vname=${find . -type f \( -name "*.mp4" -o -name "*.mkv" -o -name "*.webm" -o -name "*.m4a" \) -exec basename {} \;}" >> $GITHUB_OUTPUT
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: video_assets
name: ${{ steps.video-name.outputs.vname }}
path: dist
if-no-files-found: error
retention-days: 1
Expand Down

0 comments on commit 8a4723c

Please sign in to comment.