mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
Branch rename automation again
This commit is contained in:
parent
cc4edc86f2
commit
221159eaeb
|
@ -9,4 +9,4 @@ hash^MSXBIOSHASHPLACEHOLDER^http://bluemsx.msxblue.com/rel_download/blueMSXv282f
|
||||||
hash^XEMUHDDHASHPLACEHOLDER^https://github.com/mborgerson/xemu-hdd-image/releases/latest/download/xbox_hdd.qcow2.zip
|
hash^XEMUHDDHASHPLACEHOLDER^https://github.com/mborgerson/xemu-hdd-image/releases/latest/download/xbox_hdd.qcow2.zip
|
||||||
latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main
|
latestcommit^UNIVERSALDYNAMICINPUTCOMMITPLACEHOLDER^https://github.com/Venomalia/UniversalDynamicInput^main
|
||||||
outside_info^VERSIONPLACEHOLDER^${GITHUB_WORKSPACE}/buildid
|
outside_info^VERSIONPLACEHOLDER^${GITHUB_WORKSPACE}/buildid
|
||||||
outside_info^THISBRANCH^$(git rev-parse --abbrev-ref HEAD)
|
branch^THISBRANCH^$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
|
|
@ -28,7 +28,13 @@ echo
|
||||||
while IFS="^" read -r action placeholder url branch
|
while IFS="^" read -r action placeholder url branch
|
||||||
do
|
do
|
||||||
if [[ ! $action == "#"* ]] && [[ ! -z "$action" ]]; then
|
if [[ ! $action == "#"* ]] && [[ ! -z "$action" ]]; then
|
||||||
if [[ "$action" == "hash" ]]; then
|
if [[ "$action" == "branch" ]]; then
|
||||||
|
echo
|
||||||
|
echo "Placeholder text: $placeholder"
|
||||||
|
echo "Current branch:" "$current_branch"
|
||||||
|
echo
|
||||||
|
/bin/sed -i 's^'"$placeholder"'^'"$current_branch"'^g' $rd_manifest
|
||||||
|
elif [[ "$action" == "hash" ]]; then
|
||||||
echo
|
echo
|
||||||
echo "Placeholder text: $placeholder"
|
echo "Placeholder text: $placeholder"
|
||||||
echo "URL to hash: $url"
|
echo "URL to hash: $url"
|
||||||
|
|
Loading…
Reference in a new issue