mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-07 22:17:41 +00:00
Added python script to parse changelog
This commit is contained in:
parent
1e413d034f
commit
29d3a0f1dd
2
.github/workflows/changelog.py
vendored
2
.github/workflows/changelog.py
vendored
@ -2,7 +2,7 @@ import os
|
|||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
raw_git = os.popen('git log next --since="5 days" --pretty=format:"- %h - {USERNAME}*+%al-%an*: %s"').read()
|
raw_git = os.popen('git log next --since="24 hours" --pretty=format:"- %h - {USERNAME}*+%al-%an*: %s"').read()
|
||||||
|
|
||||||
|
|
||||||
def compute_username(line):
|
def compute_username(line):
|
||||||
|
3
.github/workflows/create_nightly_release.yml
vendored
3
.github/workflows/create_nightly_release.yml
vendored
@ -55,8 +55,7 @@ jobs:
|
|||||||
zip -r sdcard.zip sdcard
|
zip -r sdcard.zip sdcard
|
||||||
- name: Create changelog
|
- name: Create changelog
|
||||||
run: |
|
run: |
|
||||||
# CHANGELOG=$(git log next --since="24 hours" --pretty=format:"- %h - @%an: %s") # Commented out as username are currently broken
|
CHANGELOG=$(python3 .github/workflows/changelog.py)
|
||||||
CHANGELOG=$(git log next --since="24 hours" --pretty=format:"- %h - %s")
|
|
||||||
CHANGELOG="${CHANGELOG//'%'/'%25'}"
|
CHANGELOG="${CHANGELOG//'%'/'%25'}"
|
||||||
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
|
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
|
||||||
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
|
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user