Skip to content
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.

Commit

Permalink
Automated Daily Builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesmiscore authored and github-actions[bot] committed Jan 1, 2023
1 parent 2fb0f85 commit b394e67
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 13 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build
on: workflow_dispatch

on:
workflow_dispatch:
schedule:
- cron: "0 2 * * *"
permissions:
contents: read

Expand All @@ -22,10 +26,7 @@ jobs:

- name: Set version suffix
id: version_suffix
env:
PUSH_VERSION_COMMIT: ${{ secrets.PUSH_VERSION_COMMIT }}
if: "env.PUSH_VERSION_COMMIT == ''"
run: echo "version_suffix=$(date -u +"%H%M%S")" >> "$GITHUB_OUTPUT"
run: echo "version_suffix=$( printf '114514\n40298\n43044\n810\n1919\n19419\n334' | sort -R | head -n1 )" >> "$GITHUB_OUTPUT"
- name: Bump version
id: bump_version
run: |
Expand All @@ -34,13 +35,7 @@ jobs:
- name: Push to release
id: push_release
run: |
git config --global user.name github-actions
git config --global user.email github-actions@example.com
git add -u
git commit -m "[version] update" -m "Created by: ${{ github.event.sender.login }}" -m ":ci skip all :ci run dl"
git push origin --force ${{ github.event.ref }}:release
echo "head_sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
run: echo "head_sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- name: Update master
env:
PUSH_VERSION_COMMIT: ${{ secrets.PUSH_VERSION_COMMIT }}
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/rebase-on-upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Rebase on Upstream

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
rebase:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- uses: ytdl-patched/rebase-upstream-action@master
with:
token: ${{ secrets.GH_PAT }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
[![Commits](https://img.shields.io/github/commit-activity/m/yt-dlp/yt-dlp?label=commits&style=for-the-badge)](https://github.com/yt-dlp/yt-dlp/commits "Commit History")
[![Last Commit](https://img.shields.io/github/last-commit/yt-dlp/yt-dlp/master?label=&style=for-the-badge&display_timestamp=committer)](https://github.com/yt-dlp/yt-dlp/commits "Commit History")

**This repository is for unofficial daily builds.**
**Please do not open any issues nor pull requests.**

</div>
<!-- MANPAGE: END EXCLUDED SECTION -->

Expand Down
2 changes: 2 additions & 0 deletions yt_dlp/YoutubeDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -3768,6 +3768,8 @@ def get_encoding(stream):
if not _IN_CLI:
write_debug(f'params: {self.params}')

write_debug('** This build is unofficial daily builds, provided for ease of use.')
write_debug('** Please do not ask for any support.')
if not _LAZY_LOADER:
if os.environ.get('YTDLP_NO_LAZY_EXTRACTORS'):
write_debug('Lazy loading extractors is forcibly disabled')
Expand Down
2 changes: 1 addition & 1 deletion yt_dlp/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
)
from .version import UPDATE_HINT, VARIANT, __version__

REPOSITORY = 'yt-dlp/yt-dlp'
REPOSITORY = 'ytdl-patched/yt-dlp'
API_URL = f'https://api.github.com/repos/{REPOSITORY}/releases'


Expand Down

0 comments on commit b394e67

Please sign in to comment.