]> jfr.im git - yt-dlp.git/blob - .github/workflows/release-nightly.yml
[build] Move bundle scripts into `bundle` submodule
[yt-dlp.git] / .github / workflows / release-nightly.yml
1 name: Release (nightly)
2 on:
3 schedule:
4 - cron: '23 23 * * *'
5 permissions:
6 contents: read
7
8 jobs:
9 check_nightly:
10 if: vars.BUILD_NIGHTLY != ''
11 runs-on: ubuntu-latest
12 outputs:
13 commit: ${{ steps.check_for_new_commits.outputs.commit }}
14 steps:
15 - uses: actions/checkout@v4
16 with:
17 fetch-depth: 0
18 - name: Check for new commits
19 id: check_for_new_commits
20 run: |
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"
23
24 release:
25 needs: [check_nightly]
26 if: ${{ needs.check_nightly.outputs.commit }}
27 uses: ./.github/workflows/release.yml
28 with:
29 prerelease: true
30 source: nightly
31 permissions:
32 contents: write
33 packages: write
34 id-token: write # mandatory for trusted publishing
35 secrets: inherit