fix(ci): correct mistake in CI
This commit is contained in:
@@ -3,8 +3,7 @@ set -o errexit
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
patch_apps() {
|
||||||
|
|
||||||
# Copy changelog from website
|
# Copy changelog from website
|
||||||
if [[ ! -f "website/docs/charts/${train}/${chartname}/CHANGELOG.md" ]]; then
|
if [[ ! -f "website/docs/charts/${train}/${chartname}/CHANGELOG.md" ]]; then
|
||||||
touch "website/docs/charts/${train}/${chartname}/CHANGELOG.md"
|
touch "website/docs/charts/${train}/${chartname}/CHANGELOG.md"
|
||||||
@@ -24,5 +23,24 @@ fi
|
|||||||
echo "Truncating changelog for: ${chartname}"
|
echo "Truncating changelog for: ${chartname}"
|
||||||
# Truncate changelog to only contain the last 100 lines
|
# Truncate changelog to only contain the last 100 lines
|
||||||
sed -i '100,$ d' "${target}/CHANGELOG.md" || :
|
sed -i '100,$ d' "${target}/CHANGELOG.md" || :
|
||||||
|
}
|
||||||
|
export -f patch_apps
|
||||||
|
|
||||||
|
if [[ -d "charts/${1}" ]]; then
|
||||||
|
echo "Start processing charts/${1} ..."
|
||||||
|
chartversion=$(cat charts/${1}/Chart.yaml | grep "^version: " | awk -F" " '{ print $2 }')
|
||||||
|
chartname=$(basename charts/${1})
|
||||||
|
train=$(basename $(dirname "charts/${1}"))
|
||||||
|
SCALESUPPORT=$(cat charts/${1}/Chart.yaml | yq '.annotations."truecharts.org/SCALE-support"' -r)
|
||||||
|
if [[ "${SCALESUPPORT}" == "true" ]]; then
|
||||||
|
patch_apps "charts/${1}" "${chartname}" "$train" "${chartversion}"
|
||||||
|
else
|
||||||
|
echo "Skipping chart charts/${1}, no correct SCALE compatibility layer detected"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Chart 'charts/${1}' no longer exists in repo. Skipping it..."
|
||||||
|
fi
|
||||||
|
echo "Done processing charts/${1} ..."
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -35,4 +35,4 @@ sources:
|
|||||||
- https://github.com/truecharts/charts/tree/master/charts/stable/jackett
|
- https://github.com/truecharts/charts/tree/master/charts/stable/jackett
|
||||||
- https://ghcr.io/linuxserver/jackett
|
- https://ghcr.io/linuxserver/jackett
|
||||||
type: application
|
type: application
|
||||||
version: 18.2.1
|
version: 18.2.2
|
||||||
|
|||||||
Reference in New Issue
Block a user