rancher-partner-charts/.github/workflows/daily.yaml

42 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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 dont 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"