# Authors: Samuel Attwood, Nefi Munoz name: Partner Charts CI on: workflow_dispatch: # push: # branches: # - main-source jobs: build: runs-on: ubuntu-latest steps: - name: Checkout main-source branch uses: actions/checkout@v3 - name: Setup go uses: actions/setup-go@v3 with: go-version: '>=1.17.0' - name: Run CI run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" scripts/pull-ci-scripts bin/partner-charts-ci auto git push origin main-source - name: Update main branch run: | # checkout action is only going to fetch the current branch, so "git checkout main" would fail if we don’t fetch main first git fetch origin main --depth 1 git checkout main rm -r assets index.yaml git checkout main-source -- index.yaml assets - name: Auto commit & push # Defaults pushing to current branch (main) uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: "Release Partner Charts"