Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/AMReX-Astro/MAESTROeX
Browse files Browse the repository at this point in the history
…into development
  • Loading branch information
doreenfan committed Sep 3, 2020
2 parents 52bb310 + 9a1a4ed commit f3b03f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
release_name: MAESTROeX ${{ github.ref }}
body: ${{ env.RELEASE_TXT }}
draft: false
prerelease: false
16 changes: 10 additions & 6 deletions .github/workflows/get_release_txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,21 @@
# find next date
m_next = re.search(gen_version_re, txt[m.end():])
if m_next:
txt = txt[m.end():m.end()+m_next.start()].strip()
txt = txt[m.end():m.end()+m_next.start()].rstrip()
else:
txt = txt[m.end():].strip()
txt = txt[m.end():].rstrip()

txt = f'# {sys.argv[1]}' + txt
else:
txt = ""

# we now need to substitute characters in the string so that
# the action can deal with line breaks

print(txt)

# we now need to substitute characters in the string so that
# the action can deal with line breaks
txt = txt.replace('%', '%25')
txt = txt.replace('\n', '%0A')
txt = txt.replace('\r', '%0D')
txt = txt.replace('%0A *', '%0A*')

print(f'::set-env name=RELEASE_TXT::{txt}')
print(f'::set-env name=RELEASE_TXT::{txt}')

0 comments on commit f3b03f8

Please sign in to comment.