Fix the _hpa.tpl so it produses a valid HorizontalPodAutoscaler (#147) #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tagging | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
tagging: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: git tag | |
run: | | |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
git config --global user.name "${GITHUB_ACTOR}" | |
for chart in */Chart.yaml; do | |
chart=$(dirname $chart) | |
version=$(cat ${chart}/Chart.yaml | grep "version:" | awk '{ print $2 }') | |
if [ $(git tag -l "${chart}-${version}") ]; then | |
echo "tag "${chart}-${version}" -m "${chart}-${version}" exists"; | |
else | |
git tag -a "${chart}-${version}" -m "${chart}-${version}" || true | |
fi | |
git push --tags "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" | |
done | |