handle youtube-dl's ChangeLog file correctly (partially tested)

This commit is contained in:
Lesmiscore 2022-02-20 18:09:38 +09:00
parent 5a854e61d3
commit 393ef9e73d
No known key found for this signature in database
GPG Key ID: 0EC2B52CF86236FF
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ jobs:
- name: Get Changelog
id: get_changelog
run: |
changelog=$(cat ChangeLog | grep -oPz '(?s)(?<=### ${{ steps.bump_version.outputs.ytdl_version }}\n{2}).+?(?=\n{2,3}###)') || true
changelog=$(cat ChangeLog | grep -oPz '(?s)(?<=version ${{ steps.bump_version.outputs.ytdl_version }}\n{2}).+?(?=\n{2,3}version)') || true
echo "changelog<<EOF" >> $GITHUB_ENV
echo "$changelog" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV