File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,33 +76,17 @@ jobs:
7676 name : artifacts
7777
7878 - name : Extract changelog entry
79- id : changelog
8079 run : |
81- notes=$(python3 -c "
82- with open('src/EtcdTerminal.App/CHANGELOG.md') as f :
83- content = f.read()
84- entries = content.split('## [')
85- if len(entries) > 1 :
86- entry = entries[1]
87- idx = entry.find('\n## [', 1)
88- if idx > 0 :
89- entry = entry[:idx]
90- nl = entry.find('\n')
91- if nl >= 0 :
92- entry = entry[nl:]
93- print(entry.strip())
94- " )
95- EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
96- echo " NOTES<<$EOF" >> $GITHUB_ENV
97- echo "$notes" >> $GITHUB_ENV
98- echo "$EOF" >> $GITHUB_ENV
80+ awk '/^## \[/{if(f) exit; f=1; next} f' \
81+ src/EtcdTerminal.App/CHANGELOG.md \
82+ > /tmp/release_notes.md
9983
10084 - name : Create release
10185 env :
10286 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
10387 run : |
10488 gh release create "${{ github.ref_name }}" \
10589 --title "${{ github.ref_name }}" \
106- --notes "$NOTES" \
90+ --notes-file /tmp/release_notes.md \
10791 etcd-terminal-linux-x64.tar.gz \
10892 etcd-terminal-win-x64.zip
You can’t perform that action at this time.
0 commit comments