Skip to content

Merge pull request #2 from pawelmrowka/hpa-fix #2

Merge pull request #2 from pawelmrowka/hpa-fix

Merge pull request #2 from pawelmrowka/hpa-fix #2

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Auto Reindex
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
concurrency: auto-reindex
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
reindex:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install helm 3
run: |
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
- name: Package existing charts
run: |
./index-repository.sh
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add index.yaml packages/
git commit -m "Reindex new charts" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}