mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 07:25:38 +00:00
Appdata management: removing log in favor of echo
This commit is contained in:
parent
f7338d5dc3
commit
f02e26dac2
4
.github/workflows/build_release.yml
vendored
4
.github/workflows/build_release.yml
vendored
|
@ -165,7 +165,6 @@ jobs:
|
||||||
RELEASE_BODY+="On branch [${{ env.BRANCH_NAME }}](https://github.com/RetroDECK/RetroDECK/tree/${{ env.BRANCH_NAME }}).\n\n"
|
RELEASE_BODY+="On branch [${{ env.BRANCH_NAME }}](https://github.com/RetroDECK/RetroDECK/tree/${{ env.BRANCH_NAME }}).\n\n"
|
||||||
RELEASE_BODY+="## Commits since last release\n"
|
RELEASE_BODY+="## Commits since last release\n"
|
||||||
RELEASE_BODY+="${{ steps.get-commits.outputs.commits }}\n\n"
|
RELEASE_BODY+="${{ steps.get-commits.outputs.commits }}\n\n"
|
||||||
# RELEASE_BODY+="## In this release:\n"
|
|
||||||
|
|
||||||
# # Extract the latest release version and date
|
# # Extract the latest release version and date
|
||||||
# LATEST_RELEASE=$(xmlstarlet sel -t -m "//release[1]" -v "@version" -o " (" -v "@date" -o ")" -n net.retrodeck.retrodeck.appdata.xml)
|
# LATEST_RELEASE=$(xmlstarlet sel -t -m "//release[1]" -v "@version" -o " (" -v "@date" -o ")" -n net.retrodeck.retrodeck.appdata.xml)
|
||||||
|
@ -176,8 +175,7 @@ jobs:
|
||||||
# -i "self::ul/li" -o "- " -v "." -o "\n" \
|
# -i "self::ul/li" -o "- " -v "." -o "\n" \
|
||||||
# net.retrodeck.retrodeck.appdata.xml)
|
# net.retrodeck.retrodeck.appdata.xml)
|
||||||
|
|
||||||
# # Construct the full release body
|
# RELEASE_BODY+="# Release Notes\nVersion: $LATEST_RELEASE\n\n$DESCRIPTION"
|
||||||
# RELEASE_BODY="# Release Notes\nVersion: $LATEST_RELEASE\n\n$DESCRIPTION"
|
|
||||||
|
|
||||||
# Output the release body for GitHub Actions
|
# Output the release body for GitHub Actions
|
||||||
echo "release_body=$RELEASE_BODY" >> $GITHUB_OUTPUT
|
echo "release_body=$RELEASE_BODY" >> $GITHUB_OUTPUT
|
||||||
|
|
|
@ -7,24 +7,24 @@ source automation_tools/version_extractor.sh
|
||||||
|
|
||||||
# Fetch appdata version
|
# Fetch appdata version
|
||||||
appdata_version=$(fetch_appdata_version)
|
appdata_version=$(fetch_appdata_version)
|
||||||
log i "Appdata:\t\t$appdata_version"
|
echo -e "Appdata:\t\t$appdata_version"
|
||||||
|
|
||||||
# Defining manifest file location
|
# Defining manifest file location
|
||||||
appdata_file="net.retrodeck.retrodeck.appdata.xml"
|
appdata_file="net.retrodeck.retrodeck.appdata.xml"
|
||||||
|
|
||||||
# Check if release with appdata_version already exists
|
# Check if release with appdata_version already exists
|
||||||
if grep -q "version=\"$appdata_version\"" "$appdata_file"; then
|
if grep -q "version=\"$appdata_version\"" "$appdata_file"; then
|
||||||
log i "Deleting existing release version $appdata_version..."
|
echo -e "Deleting existing release version $appdata_version..."
|
||||||
|
|
||||||
# Remove the existing release entry
|
# Remove the existing release entry
|
||||||
sed -i "/<release version=\"$appdata_version\"/,/<\/release>/d" "$appdata_file"
|
sed -i "/<release version=\"$appdata_version\"/,/<\/release>/d" "$appdata_file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log i "Adding new release version $appdata_version..."
|
echo -e "Adding new release version $appdata_version..."
|
||||||
|
|
||||||
# Get today's date in the required format (YYYY-MM-DD)
|
# Get today's date in the required format (YYYY-MM-DD)
|
||||||
today_date=$(date +"%Y-%m-%d")
|
today_date=$(date +"%Y-%m-%d")
|
||||||
log i "Today is $today_date"
|
echo -e "Today is $today_date"
|
||||||
|
|
||||||
# Construct the release snippet
|
# Construct the release snippet
|
||||||
release_snippet="\
|
release_snippet="\
|
||||||
|
|
Loading…
Reference in a new issue