1 name: Release (nightly)
10 if: vars.BUILD_NIGHTLY != ''
11 runs-on: ubuntu-latest
13 commit: ${{ steps.check_for_new_commits.outputs.commit }}
15 - uses: actions/checkout@v4
18 - name: Check for new commits
19 id: check_for_new_commits
21 relevant_files=("yt_dlp/*.py" ':!yt_dlp/version.py' "setup.py" "bundle/*.py")
22 echo "commit=$(git log --format=%H -1 --since="24 hours ago" -- "${relevant_files[@]}")" | tee "$GITHUB_OUTPUT"
25 needs: [check_nightly]
26 if: ${{ needs.check_nightly.outputs.commit }}
27 uses: ./.github/workflows/release.yml
34 id-token: write # mandatory for trusted publishing