Skip to content

Commit

Permalink
Introduce automation to release partner charts daily
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkpickering committed Mar 6, 2024
1 parent aec5f82 commit e0fbd8f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 43 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/daily.yaml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release Partner Charts

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Configure git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Update main-source branch
run: |
scripts/pull-ci-scripts
bin/partner-charts-ci auto
git push origin main-source
- name: Update main branch
run: |
# checkout action only fetches main-source, so we need to fetch main branch also
git fetch origin main --depth 1
git checkout main
git checkout main-source -- index.yaml assets
git commit -m "Release partner charts"
git push origin main

0 comments on commit e0fbd8f

Please sign in to comment.