Skip to content

A feature-rich command-line audio/video downloader

[build] Allow to release without changelog so that forks can build using GHA easily

pukkandan84999521c89a
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 324cf7eb65..5717ce8ee4 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -47,7 +47,7 @@ jobs:
- name: Get Changelog
id: get_changelog
run: |
- changelog=$(cat Changelog.md | grep -oPz '(?s)(?<=### ${{ steps.bump_version.outputs.ytdlp_version }}\n{2}).+?(?=\n{2,3}###)')
+ changelog=$(cat Changelog.md | grep -oPz '(?s)(?<=### ${{ steps.bump_version.outputs.ytdlp_version }}\n{2}).+?(?=\n{2,3}###)') || true
echo "changelog<<EOF" >> $GITHUB_ENV
echo "$changelog" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV