mirror of https://git.rancher.io/rke2-charts
30 lines
732 B
YAML
30 lines
732 B
YAML
|
name: CI-push
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- dev-v2.5-source-alt
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
|
||
|
- name: Pull scripts
|
||
|
run: sudo make pull-scripts
|
||
|
|
||
|
- name: Pull in all relevant branches
|
||
|
run: git fetch origin dev-v2.5-source-alt dev-v2.5-alt main-alt
|
||
|
|
||
|
- name: Checkout staging branch
|
||
|
run: git checkout dev-v2.5-alt
|
||
|
|
||
|
- name: Synchronize
|
||
|
run: sudo make sync
|
||
|
|
||
|
- name: Add assets to branch
|
||
|
run: git add . && git -c user.name="actions" -c user.email="actions@github.com" commit -m "$(git log -b dev-v2.5-source-alt --oneline -n1 --pretty=format:'%B')" || true
|
||
|
|
||
|
- name: Push assets
|
||
|
run: git push origin dev-v2.5-alt
|