Bump chart version 1.2.1 #21
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: Release Chart | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'CODEOWNERS' | |
- '**.md' | |
jobs: | |
bump: | |
name: Bump chart version | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.BOT_TOKEN }} | |
# issue: https://github.com/helm/chart-releaser-action/issues/113 | |
- name: Force tags download | |
run: | | |
git pull --tags | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Setup Helm | |
run: | | |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | |
chmod 700 get_helm.sh | |
./get_helm.sh | |
- name: Semantic release | |
uses: cycjimmy/semantic-release-action@v3 | |
id: semantic | |
with: | |
dry_run: true | |
semantic_version: 19.0.5 | |
extra_plugins: | | |
@semantic-release/[email protected] | |
@semantic-release/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Bump chart version | |
if: steps.semantic.outputs.new_release_published == 'true' | |
run: | | |
echo "Bumping chart version ${{ steps.semantic.outputs.new_release_version }}" | |
yq -i ".version = \"${{ steps.semantic.outputs.new_release_version }}\"" "charts/interop-eks-cronjob-chart/Chart.yaml" | |
git add "charts/interop-eks-cronjob-chart/Chart.yaml" | |
git commit -m "Bump chart version ${{ steps.semantic.outputs.new_release_version }}" | |
git push -u origin ${{ github.ref_name }} | |
- name: Run chart-releaser | |
if: steps.semantic.outputs.new_release_published == 'true' | |
uses: helm/[email protected] | |
env: | |
CR_TOKEN: "${{ secrets.BOT_TOKEN }}" |