~aleteoryx/muditaos

ref: 17f64cb3e4865ec85d4cb5a7f8a2bb9db68d023c muditaos/print_last_changes.sh -rwxr-xr-x 497 bytes
17f64cb3 — Lucjan Bryndza [EGD-5022] Fix invalid open flags in vfscore 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

# prints change log as a GitHub Variable

CHANGELOG_FILE="changelog.md"

function printChangeLogForGH() {
    CHANGELOG="$(cat ${CHANGELOG_FILE})"
    CHANGELOG="${CHANGELOG//'%'/'%25'}"
    CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
    CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
    echo "::set-output name=release_notes::${CHANGELOG}"
}

printChangeLogForGH