Escape HTML elements in commit messages
This commit is contained in:
parent
babf14a8d2
commit
cbcdb22670
2 changed files with 12 additions and 12 deletions
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
|
@ -46,15 +46,15 @@ jobs:
|
|||
hide-archive-link: true
|
||||
verbose: true
|
||||
|
||||
# - name: Create release at GitHub
|
||||
# run: |
|
||||
# gh release create "$GITHUB_REF_NAME" \
|
||||
# --repo "$GITHUB_REPOSITORY" \
|
||||
# --title "Antville ${{ github.ref_name }}" \
|
||||
# --notes "${{ steps.create_release_notes.outputs.release_notes }}"
|
||||
- name: Create release at GitHub
|
||||
run: |
|
||||
gh release create "$GITHUB_REF_NAME" \
|
||||
--repo "$GITHUB_REPOSITORY" \
|
||||
--title "Antville ${{ github.ref_name }}" \
|
||||
--notes "${{ steps.create_release_notes.outputs.release_notes }}"
|
||||
|
||||
# - name: Upload release assets to GitHub
|
||||
# run: |
|
||||
# gh release upload "$GITHUB_REF_NAME" build/distributions/ant*.* \
|
||||
# --repo "$GITHUB_REPOSITORY" \
|
||||
# --clobber
|
||||
- name: Upload release assets to GitHub
|
||||
run: |
|
||||
gh release upload "$GITHUB_REF_NAME" build/distributions/ant*.* \
|
||||
--repo "$GITHUB_REPOSITORY" \
|
||||
--clobber
|
||||
|
|
|
@ -17,7 +17,7 @@ body = """
|
|||
* [<tt>{{ commit.id | split(pat="") | slice(end=11) | join() }}</tt>]\
|
||||
(https://code.host.antville.org/antville/antville/commit/{{ commit.id }}) \
|
||||
{% if commit.breaking %}**Breaking:** {% endif %}\
|
||||
{{ commit.message | split(pat="\\n") | first | upper_first }}\
|
||||
{{ commit.message | split(pat="\\n") | first | upper_first | escape }}\
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue