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

pull/30644/head
Lesmiscore 4 years ago
parent 5a854e61d3
commit 393ef9e73d
No known key found for this signature in database
GPG Key ID: 0EC2B52CF86236FF

@ -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

Loading…
Cancel
Save