2024-03-05 16:38:51 +00:00
|
|
|
name: "Charts: Release"
|
2022-03-30 10:26:37 +00:00
|
|
|
|
|
|
|
concurrency: helm-release
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- "charts/**"
|
|
|
|
|
|
|
|
jobs:
|
2023-02-09 13:00:28 +00:00
|
|
|
release-helm:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-05-09 00:26:01 +00:00
|
|
|
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4
|
2023-02-09 13:00:28 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.BOT_TOKEN }}
|
|
|
|
fetch-depth: 1
|
2023-05-07 15:42:53 +00:00
|
|
|
|
2023-02-09 13:00:28 +00:00
|
|
|
- name: Checkout Helm-Staging
|
2024-05-09 00:26:01 +00:00
|
|
|
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4
|
2023-02-09 13:00:28 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
repository: truecharts/helm-staging
|
|
|
|
token: ${{ secrets.BOT_TOKEN }}
|
|
|
|
path: helm
|
2024-02-22 00:08:32 +00:00
|
|
|
|
2024-02-21 13:28:40 +00:00
|
|
|
- name: Install pre-commit, yamale and yamllint
|
|
|
|
run: |
|
|
|
|
pip3 install --no-cache-dir pre-commit
|
2023-05-07 15:42:53 +00:00
|
|
|
|
2023-02-09 13:00:28 +00:00
|
|
|
- name: Fix Pre-Commit issues
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo "Running pre-commit test-and-cleanup..."
|
|
|
|
pre-commit run --all ||:
|
|
|
|
# Fix sh files to always be executable
|
|
|
|
find . -name '*.sh' | xargs chmod +x
|
2023-05-07 15:42:53 +00:00
|
|
|
|
2024-02-25 14:28:04 +00:00
|
|
|
# Optional step if GPG signing is used
|
|
|
|
- name: Clean Questions
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
find ./helm -type f -name 'questions.yaml' -exec rm {} \;
|
|
|
|
|
2023-02-09 13:00:28 +00:00
|
|
|
- name: Commit Helm Changes
|
|
|
|
run: |
|
|
|
|
rm -rf helm/charts
|
|
|
|
mkdir helm/charts
|
2023-02-09 19:19:56 +00:00
|
|
|
cp -rf charts helm
|
2023-02-09 13:00:28 +00:00
|
|
|
|
|
|
|
- name: Commit Helm Changes
|
|
|
|
run: |
|
|
|
|
cd helm
|
|
|
|
git config user.name "TrueCharts-Bot"
|
|
|
|
git config user.email "bot@truecharts.org"
|
|
|
|
git add --all
|
|
|
|
git commit -sm "Commit released Helm Charts for TrueCharts" || exit 0
|
|
|
|
git push
|
|
|
|
cd -
|
|
|
|
|
2022-09-22 12:54:25 +00:00
|
|
|
release-scale:
|
2022-03-30 10:26:37 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-11-10 09:06:50 +00:00
|
|
|
outputs:
|
|
|
|
ref: ${{ steps.save-commit-hash.outputs.commit_hash }}
|
2022-03-30 10:26:37 +00:00
|
|
|
steps:
|
|
|
|
- name: Install Kubernetes tools
|
2024-04-05 06:28:09 +00:00
|
|
|
uses: yokawasa/action-setup-kube-tools@5fe385031665158529decddddb51d6224422836e # v0.11.1
|
2022-03-30 10:26:37 +00:00
|
|
|
with:
|
2022-03-30 12:59:33 +00:00
|
|
|
setup-tools: |
|
|
|
|
helmv3
|
2024-02-14 16:02:56 +00:00
|
|
|
helm: "3.14.0"
|
2022-03-30 10:26:37 +00:00
|
|
|
|
2024-02-14 16:29:01 +00:00
|
|
|
- name: Prep go-yq
|
|
|
|
run: |
|
2024-02-15 00:08:49 +00:00
|
|
|
wget https://github.com/mikefarah/yq/releases/download/v4.26.1/yq_linux_amd64 -O /usr/local/bin/go-yq && chmod +x /usr/local/bin/go-yq
|
2023-05-07 15:42:53 +00:00
|
|
|
|
2023-05-05 17:52:55 +00:00
|
|
|
# Optional step if GPG signing is used
|
|
|
|
- name: Prepare GPG key
|
2023-05-05 20:53:55 +00:00
|
|
|
shell: bash
|
2023-05-05 17:52:55 +00:00
|
|
|
run: |
|
|
|
|
gpg_dir=.cr-gpg
|
2023-05-07 15:42:53 +00:00
|
|
|
mkdir -p "$gpg_dir"
|
2023-05-05 17:52:55 +00:00
|
|
|
keyring="$gpg_dir/secring.gpg"
|
|
|
|
base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring"
|
|
|
|
passphrase_file="$gpg_dir/passphrase"
|
|
|
|
echo "$GPG_PASSPHRASE" > "$passphrase_file"
|
|
|
|
echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV"
|
|
|
|
echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV"
|
|
|
|
env:
|
|
|
|
GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}"
|
|
|
|
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
|
2022-04-01 09:45:11 +00:00
|
|
|
|
2022-04-01 09:03:57 +00:00
|
|
|
- name: Checkout
|
2024-05-09 00:26:01 +00:00
|
|
|
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4
|
2022-04-01 09:03:57 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.BOT_TOKEN }}
|
2022-04-01 10:31:10 +00:00
|
|
|
fetch-depth: 0
|
2024-02-22 00:08:32 +00:00
|
|
|
|
2024-02-21 12:34:30 +00:00
|
|
|
- name: Prep Helm
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
./.github/scripts/prep_helm.sh
|
2022-04-01 07:52:38 +00:00
|
|
|
|
2022-11-24 10:26:33 +00:00
|
|
|
- name: Setting repo parent dir as safe safe.directory
|
|
|
|
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
|
|
|
2022-04-01 07:52:38 +00:00
|
|
|
- name: Collect changes
|
|
|
|
id: collect-changes
|
|
|
|
uses: ./.github/actions/collect-changes
|
|
|
|
|
2022-11-10 19:39:03 +00:00
|
|
|
- name: Generate Changelog
|
2022-04-01 09:34:46 +00:00
|
|
|
shell: bash
|
2022-04-01 09:32:27 +00:00
|
|
|
if: |
|
|
|
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
2022-04-01 09:03:57 +00:00
|
|
|
run: |
|
2024-03-05 12:13:16 +00:00
|
|
|
export GOBIN=/usr/local/bin/
|
2024-02-26 20:15:37 +00:00
|
|
|
go install github.com/git-chglog/git-chglog/cmd/git-chglog@latest
|
2022-04-01 09:32:27 +00:00
|
|
|
CHARTS=(${{ steps.collect-changes.outputs.modifiedChartsAfterTag }})
|
2022-04-03 08:43:00 +00:00
|
|
|
parthreads=$(($(nproc) * 2))
|
2022-11-10 19:39:03 +00:00
|
|
|
parallel -j ${parthreads} .github/scripts/changelog.sh '2>&1' ::: ${CHARTS[@]}
|
2022-04-03 08:43:00 +00:00
|
|
|
|
2022-04-01 09:45:11 +00:00
|
|
|
- name: Fix Pre-Commit issues
|
|
|
|
shell: bash
|
|
|
|
if: |
|
|
|
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
|
|
|
run: |
|
|
|
|
echo "Running pre-commit test-and-cleanup..."
|
|
|
|
pre-commit run --all ||:
|
|
|
|
# Fix sh files to always be executable
|
|
|
|
find . -name '*.sh' | xargs chmod +x
|
|
|
|
|
2022-04-01 06:39:13 +00:00
|
|
|
- name: Checkout
|
2024-05-09 00:26:01 +00:00
|
|
|
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4
|
2022-04-03 15:15:08 +00:00
|
|
|
if: |
|
|
|
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
2022-04-01 06:39:13 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
2024-04-16 15:44:04 +00:00
|
|
|
repository: truecharts/website
|
2022-04-01 06:39:13 +00:00
|
|
|
token: ${{ secrets.BOT_TOKEN }}
|
2022-07-12 20:38:48 +00:00
|
|
|
path: website
|
2022-04-01 07:52:38 +00:00
|
|
|
|
2022-04-01 06:34:12 +00:00
|
|
|
- name: Copy docs to website
|
|
|
|
if: |
|
2022-04-01 08:57:40 +00:00
|
|
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
2022-04-01 07:27:52 +00:00
|
|
|
shell: bash
|
2022-04-01 06:34:12 +00:00
|
|
|
run: |
|
2022-04-01 07:17:25 +00:00
|
|
|
#!/bin/bash
|
2022-04-01 08:57:40 +00:00
|
|
|
CHARTS=(${{ steps.collect-changes.outputs.modifiedChartsAfterTag }})
|
2022-07-12 22:05:07 +00:00
|
|
|
echo "Removing Chart Docs prior to regeneration..."
|
2024-04-13 10:33:15 +00:00
|
|
|
mkdir -p website/public/img/hotlink-ok/chart-icons || echo "chart-icons path already exists, continuing..."
|
2024-04-17 12:17:27 +00:00
|
|
|
mkdir -p website/public/img/hotlink-ok/chart-icons-small || echo "chart-icons-small path already exists, continuing..."
|
2022-04-01 06:56:49 +00:00
|
|
|
for i in "${CHARTS[@]}"
|
|
|
|
do
|
|
|
|
IFS='/' read -r -a chart_parts <<< "$i"
|
|
|
|
if [ -f "charts/${chart_parts[0]}"/"${chart_parts[1]}/Chart.yaml" ]; then
|
|
|
|
train=${chart_parts[0]}
|
|
|
|
chart=${chart_parts[1]}
|
|
|
|
echo "copying docs to website for ${chart}"
|
2024-04-13 10:33:15 +00:00
|
|
|
mkdir -p website/src/content/docs/charts/${train}/${chart} || echo "chart path already exists, continuing..."
|
|
|
|
mkdir -p tmp/website/src/content/docs/charts/${train}/${chart}/ || echo "chart path already exists, continuing..."
|
|
|
|
if [[ -f "website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md" ]]; then
|
2022-12-18 20:39:57 +00:00
|
|
|
echo "changelog found..."
|
|
|
|
true
|
|
|
|
else
|
|
|
|
echo "changelog not found, starting with empty changelog..."
|
2024-04-13 10:33:15 +00:00
|
|
|
touch "website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md"
|
2022-12-18 20:39:57 +00:00
|
|
|
fi
|
2023-12-31 14:51:16 +00:00
|
|
|
|
|
|
|
echo "Keeping some docs safe..."
|
2022-12-21 21:55:18 +00:00
|
|
|
# keep some docs safe
|
2024-04-13 10:33:15 +00:00
|
|
|
mv -f website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md tmp/website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md || :
|
2023-01-17 23:06:10 +00:00
|
|
|
|
2023-12-31 14:51:16 +00:00
|
|
|
echo "Removing old docs and recreating based on charts repo..."
|
2022-12-21 21:55:18 +00:00
|
|
|
# remove old docs everywhere and recreate based on charts repo
|
2024-04-13 10:33:15 +00:00
|
|
|
rm -rf website/src/content/docs/charts/*/${chart} || :
|
|
|
|
mkdir -p website/src/content/docs/charts/${train}/${chart} || echo "chart path already exists, continuing..."
|
|
|
|
yes | cp -rf charts/${train}/${chart}/docs/* website/src/content/docs/charts/${train}/${chart}/ 2>/dev/null || :
|
2024-04-16 17:09:14 +00:00
|
|
|
yes | cp -rf charts/${train}/${chart}/icon.webp website/public/img/hotlink-ok/chart-icons/${chart}.webp 2>/dev/null || :
|
2024-04-17 12:17:27 +00:00
|
|
|
yes | cp -rf charts/${train}/${chart}/icon-small.webp website/public/img/hotlink-ok/chart-icons-small/${chart}.webp 2>/dev/null || :
|
2024-04-13 10:33:15 +00:00
|
|
|
yes | cp -rf charts/${train}/${chart}/screenshots/* website/public/img/hotlink-ok/chart-screenshots/${chart}/ 2>/dev/null || :
|
2023-01-17 23:06:10 +00:00
|
|
|
|
2023-12-31 14:51:16 +00:00
|
|
|
echo "Copying back kept docs..."
|
2022-12-21 21:55:18 +00:00
|
|
|
# Copy over kept documents
|
2024-04-13 10:33:15 +00:00
|
|
|
mv -f tmp/website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md 2>/dev/null || :
|
2022-12-21 21:55:18 +00:00
|
|
|
|
2023-12-31 14:51:16 +00:00
|
|
|
echo "Appending SCALE changelog to actual changelog..."
|
2023-12-31 19:11:54 +00:00
|
|
|
# Add SCALE changelog to actual changelog
|
2023-12-31 19:07:19 +00:00
|
|
|
# Remove header from changelog
|
2024-04-13 10:33:15 +00:00
|
|
|
sed -i '/^---$/,/^---$/d' "website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md"
|
2023-12-31 19:11:54 +00:00
|
|
|
# Prepend app-changelog to changelog
|
2024-04-13 10:33:15 +00:00
|
|
|
cat "charts/${train}/${chart}/app-changelog.md" | cat - "website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md" > temp && mv temp "website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md"
|
2023-12-31 19:07:19 +00:00
|
|
|
echo "Adding changelog header..."
|
2024-05-06 15:21:19 +00:00
|
|
|
sed -i '1s/^/---\ntitle: Changelog\npagefind: false\n---\n\n/' "website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md" || echo "failed to add changelog header..."
|
2022-12-18 20:29:53 +00:00
|
|
|
|
2023-12-31 14:51:16 +00:00
|
|
|
echo "Creating index.md..."
|
2024-04-13 10:33:15 +00:00
|
|
|
touch website/src/content/docs/charts/${train}/${chart}/index.md
|
2023-12-31 14:24:05 +00:00
|
|
|
(
|
|
|
|
echo "---"
|
|
|
|
echo "title: ${chart}"
|
|
|
|
echo "---"
|
2024-04-13 10:33:15 +00:00
|
|
|
) >> website/src/content/docs/charts/${train}/${chart}/index.md
|
|
|
|
echo "" >> website/src/content/docs/charts/${train}/${chart}/index.md
|
2022-12-21 21:44:24 +00:00
|
|
|
version=$(cat charts/${train}/${chart}/Chart.yaml | grep "^version: " | awk -F" " '{ print $2 }')
|
|
|
|
appversion=$(cat charts/${train}/${chart}/Chart.yaml | grep "^appVersion: " | awk -F" " '{ print $2 }')
|
2024-04-13 10:33:15 +00:00
|
|
|
echo '![Version: '"${version}"'](https://img.shields.io/badge/Version-'"${version}"'-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: '"${appversion}"'](https://img.shields.io/badge/AppVersion-'"${appversion}"'-informational?style=flat-square)' >> website/src/content/docs/charts/${train}/${chart}/index.md
|
|
|
|
echo "" >> website/src/content/docs/charts/${train}/${chart}/index.md
|
|
|
|
cat charts/${train}/${chart}/Chart.yaml | yq .description -r >> website/src/content/docs/charts/${train}/${chart}/index.md
|
|
|
|
echo "" >> website/src/content/docs/charts/${train}/${chart}/index.md
|
|
|
|
echo "## Chart Sources" >> website/src/content/docs/charts/${train}/${chart}/index.md
|
|
|
|
echo "" >> website/src/content/docs/charts/${train}/${chart}/index.md
|
|
|
|
cat charts/${train}/${chart}/Chart.yaml | go-yq .sources -r >> website/src/content/docs/charts/${train}/${chart}/index.md
|
|
|
|
echo "" >> website/src/content/docs/charts/${train}/${chart}/index.md
|
|
|
|
echo "## Available Documentation" >> website/src/content/docs/charts/${train}/${chart}/index.md
|
|
|
|
echo "" >> website/src/content/docs/charts/${train}/${chart}/index.md
|
2023-12-31 14:51:16 +00:00
|
|
|
echo "Iterating over all files in the docs directory..."
|
2022-12-17 20:03:55 +00:00
|
|
|
# Iterate over all files in the docs directory
|
2024-05-01 21:46:18 +00:00
|
|
|
for file in website/src/content/docs/charts/${train}/${chart}/*.md*; do
|
2022-12-17 20:03:55 +00:00
|
|
|
# Extract the file name and first line from each file
|
|
|
|
filename=$(basename "${file}")
|
2023-12-31 14:58:52 +00:00
|
|
|
echo "Found doc file: ${file}"
|
2023-12-31 16:32:55 +00:00
|
|
|
ok_title="false"
|
|
|
|
echo "Getting the first line"
|
|
|
|
h=$(head -n 1 "${file}")
|
2023-12-31 18:55:32 +00:00
|
|
|
echo "The first line is: ${h}. Checking validity..."
|
2023-12-31 16:32:55 +00:00
|
|
|
# Check if the first line has ---
|
|
|
|
if [[ "${h}" == "---" ]]; then
|
|
|
|
echo "First line is ---, continuing..."
|
|
|
|
ok_title="true"
|
|
|
|
elif [[ "${h}" == "# "* ]]; then
|
|
|
|
echo "First line is #..."
|
|
|
|
ok_title="false"
|
|
|
|
fi
|
|
|
|
if [ ${ok_title} == "false" ]; then
|
2023-12-31 15:16:24 +00:00
|
|
|
echo "Doc title should use front matter and not # for title, for example"
|
|
|
|
echo "---"
|
2023-12-31 16:32:55 +00:00
|
|
|
echo "title: some title"
|
2023-12-31 15:16:24 +00:00
|
|
|
echo "---"
|
2024-01-04 21:03:57 +00:00
|
|
|
else
|
2024-01-04 20:29:29 +00:00
|
|
|
echo "Not bad title found, continuing..."
|
|
|
|
title=$(cat "${file}" | grep "title: " | sed 's/title: //' | head -n 1)
|
|
|
|
echo "The title is: ${title}"
|
|
|
|
# Create a markdown link using the file name and title
|
2024-04-21 17:46:54 +00:00
|
|
|
filename="${filename##*/}"
|
2024-04-21 16:50:23 +00:00
|
|
|
filenameURL=${filename%.*}
|
2024-04-21 13:39:46 +00:00
|
|
|
filenameURL=${filenameURL,,}
|
|
|
|
link="[**${title}**](./${filenameURL})"
|
2024-01-04 20:29:29 +00:00
|
|
|
echo "The link is: ${link}"
|
|
|
|
if [ ${filename} != "index.md" ]; then
|
|
|
|
# Append the link to the index.md file
|
2024-04-13 10:33:15 +00:00
|
|
|
echo "- ${link}" >> website/src/content/docs/charts/${train}/${chart}/index.md
|
2024-01-04 20:29:29 +00:00
|
|
|
fi
|
2022-12-17 21:55:57 +00:00
|
|
|
fi
|
2022-12-17 20:03:55 +00:00
|
|
|
done
|
2024-04-21 12:31:23 +00:00
|
|
|
echo "" >> website/src/content/docs/charts/${train}/${chart}/index.md
|
|
|
|
echo "## Readme Content" >> website/src/content/docs/charts/${train}/${chart}/index.md
|
|
|
|
echo "" >> website/src/content/docs/charts/${train}/${chart}/index.md
|
2024-04-21 13:44:47 +00:00
|
|
|
tail -n +4 "charts/${train}/${chart}/README.md" >> website/src/content/docs/charts/${train}/${chart}/readmetmp.md
|
|
|
|
sed -i 's/##/###/' "website/src/content/docs/charts/${train}/${chart}/readmetmp.md"
|
|
|
|
cat "website/src/content/docs/charts/${train}/${chart}/readmetmp.md" >> "website/src/content/docs/charts/${train}/${chart}/index.md"
|
|
|
|
rm "website/src/content/docs/charts/${train}/${chart}/readmetmp.md" || echo "couldnt delete readmetmp.md"
|
2022-12-18 20:29:53 +00:00
|
|
|
|
2022-11-10 20:44:54 +00:00
|
|
|
rm -rf temp || :
|
2022-04-01 06:56:49 +00:00
|
|
|
fi
|
|
|
|
done
|
2022-04-01 06:34:12 +00:00
|
|
|
|
2022-04-01 10:12:48 +00:00
|
|
|
- name: Commit Website Changes
|
|
|
|
if: |
|
|
|
|
steps.collect-changes.outputs.changesDetected == 'true'
|
|
|
|
run: |
|
2022-07-12 20:38:48 +00:00
|
|
|
cd website
|
2022-04-01 10:12:48 +00:00
|
|
|
git config user.name "TrueCharts-Bot"
|
|
|
|
git config user.email "bot@truecharts.org"
|
|
|
|
git add --all
|
|
|
|
git commit -sm "Commit released docs for TrueCharts" || exit 0
|
2022-04-01 10:42:34 +00:00
|
|
|
git push
|
2023-05-07 15:42:53 +00:00
|
|
|
|
2022-11-10 19:39:03 +00:00
|
|
|
- name: Checkout Catalog
|
2024-05-09 00:26:01 +00:00
|
|
|
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4
|
2022-04-03 15:15:08 +00:00
|
|
|
if: |
|
2022-04-07 13:25:14 +00:00
|
|
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
2022-04-01 09:03:57 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
repository: truecharts/catalog
|
|
|
|
token: ${{ secrets.BOT_TOKEN }}
|
2022-09-22 12:41:14 +00:00
|
|
|
ref: staging
|
2022-04-01 09:03:57 +00:00
|
|
|
path: catalog
|
|
|
|
|
2022-11-10 19:39:03 +00:00
|
|
|
- name: build catalog
|
2022-04-01 10:03:15 +00:00
|
|
|
shell: bash
|
2022-04-01 08:34:08 +00:00
|
|
|
if: |
|
2022-04-01 08:57:40 +00:00
|
|
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
2022-04-01 08:34:08 +00:00
|
|
|
run: |
|
2022-04-01 09:59:38 +00:00
|
|
|
CHARTS=(${{ steps.collect-changes.outputs.modifiedChartsAfterTag }})
|
2023-12-16 11:59:25 +00:00
|
|
|
./charttool deps
|
2024-02-21 00:22:20 +00:00
|
|
|
./charttool buildSCALE
|
2022-04-03 08:55:01 +00:00
|
|
|
|
2022-04-01 09:59:38 +00:00
|
|
|
- name: Commit Catalog
|
|
|
|
if: |
|
|
|
|
steps.collect-changes.outputs.changesDetected == 'true'
|
|
|
|
run: |
|
|
|
|
cd catalog
|
|
|
|
git config user.name "TrueCharts-Bot"
|
|
|
|
git config user.email "bot@truecharts.org"
|
|
|
|
git add --all
|
2022-07-12 20:38:48 +00:00
|
|
|
git commit -sm "Commit new Chart releases for TrueCharts" || exit 0
|
2022-04-02 08:19:14 +00:00
|
|
|
git push
|
2022-04-01 09:59:38 +00:00
|
|
|
cd -
|