forked from rancher/partner-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.14 KB
/
daily.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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"