]> jfr.im git - yt-dlp.git/commitdiff
[build] Allow to release without changelog
authorpukkandan <redacted>
Sun, 10 Oct 2021 01:49:06 +0000 (07:19 +0530)
committerpukkandan <redacted>
Sun, 10 Oct 2021 04:02:00 +0000 (09:32 +0530)
so that forks can build using GHA easily

.github/workflows/build.yml

index 324cf7eb658d3254d625359275040f506c9037ec..5717ce8ee44f5abc93b5b208f0eb32d307bca15d 100644 (file)
@@ -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