Bump Helm Chart Versions #5
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: Bump Helm Chart Versions | |
on: | |
workflow_dispatch: | |
inputs: | |
dry_run: | |
type: boolean | |
description: | | |
Perform a dry-run of the action and don't open a Pull Request. Information | |
as to which subcharts need bumping to which versions will be printed to stdout. | |
default: false | |
required: false | |
schedule: | |
- cron: "0 0 1 * *" # Run first of every month at 00:00 UTC | |
env: | |
team_reviewers: engineering | |
jobs: | |
bump-helm-versions: | |
runs-on: ubuntu-latest | |
environment: github-app-token-generator | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# For each new helm chart to bump the subchart versions of, add a new item in | |
# this matrix. | |
- name: "binderhub" | |
chart_path: "helm-charts/binderhub/Chart.yaml" | |
# To bump multiple subchart versions, provide the chart name and a URL to | |
# a published list of versions in this dictionary. | |
chart_urls: '{"binderhub": "https://raw.githubusercontent.com/jupyterhub/helm-chart/gh-pages/index.yaml"}' | |
- name: "support" | |
chart_path: "helm-charts/support/Chart.yaml" | |
chart_urls: '{"cryptnono": "https://cryptnono.github.io/cryptnono/index.yaml", "cluster-autoscaler": "https://kubernetes.github.io/autoscaler/index.yaml", "ingress-nginx": "https://kubernetes.github.io/ingress-nginx/index.yaml", "grafana": "https://grafana.github.io/helm-charts/index.yaml", "prometheus": "https://prometheus-community.github.io/helm-charts/index.yaml"}' | |
steps: | |
# We want tests to be run on the Pull Request that gets opened by the next step, | |
# so we generate a token from a GitHub App that would allow this. | |
# By default, secrets.GITHUB_TOKEN is prevented from triggering | |
# secondary workflows. | |
# | |
# Action: https://github.com/marketplace/actions/github-app-token | |
- name: Fetch a token from GitHub App | |
id: generate_token | |
uses: tibdex/github-app-token@v2 | |
with: | |
app_id: ${{ secrets.APP_ID }} | |
private_key: ${{ secrets.PRIVATE_KEY }} | |
# Action repo: https://github.com/sgibson91/bump-helm-deps-action | |
- name: "Bump helm chart versions: ${{ matrix.name }}" | |
uses: sgibson91/bump-helm-deps-action@main | |
with: | |
chart_path: ${{ matrix.chart_path }} | |
chart_urls: ${{ matrix.chart_urls }} | |
github_token: ${{ steps.generate_token.outputs.token }} | |
# team_reviewers: ${{ env.team_reviewers }} | |
base_branch: "master" | |
dry_run: ${{ github.event.inputs.dry_run || false }} |