Skip to content

Commit

Permalink
Merge pull request #508 from materialsproject/utf-patch-2
Browse files Browse the repository at this point in the history
Update deploy.yml
  • Loading branch information
utf authored Dec 10, 2023
2 parents 341acc2 + 729b407 commit d6e302b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ jobs:
ref: ${{ github.event.workflow_run.head_branch }}

- name: Write release info
run: awk 'BEGIN {p = 0} {a = 0 }; /^v\d*.\d*.\d*./ { p += 1; a = 1}; p + a == 1 { print } ' CHANGELOG.md | sed -e '1,1d' | sed -e '/./,$!d' -e :a -e '/^\n*$/{$d;N;ba' -e '}' > release_info.txt
awk 'BEGIN {p = 0} {a = 0 }; /^\#\#\ v\d*.\d*.\d*./ { p += 1; a = 1}; p + a == 1 { print } ' CHANGELOG.md | sed -e '1,1d' | sed -e '/./,$!d' -e :a -e '/^\n*$/{$d;N;ba' -e '}' > release_info.txt
echo "" >> release_info.txt
awk '/CONTRIBUTOR SECTION/{f=1; c=0} f' CHANGELOG.md >> release_info.txt

- name: Release
uses: actions/create-release@v1
Expand Down

0 comments on commit d6e302b

Please sign in to comment.