Skip to content

Upgrade System Chart #77

Upgrade System Chart

Upgrade System Chart #77

name: Upgrade System Chart
on:
repository_dispatch:
types: [upgrade-system]
workflow_dispatch:
jobs:
upgrade:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: master
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install devbox
uses: jetify-com/[email protected]
with:
enable-cache: true
- name: Add helm repos
run: .github/add-repos.sh
- name: Install python dependencies
run: pip install -r requirements.txt
- name: Bump chart versions
run: python upgrade_system.py
- name: Check if changes detected
id: diff
run: echo "changes=$(git diff --exit-code > /dev/null || echo $?)" >> $GITHUB_OUTPUT
- name: Pre-commit
if: ${{ steps.diff.outputs.changes == '1' }}
run: devbox run pre-commit
- name: Changes
if: ${{ steps.diff.outputs.changes == '1' }}
run: |
git diff
git status
- name: Commit and push
if: ${{ steps.diff.outputs.changes == '1' }}
run: |
git add -A
git commit -m "chore: automated system version bump"
git pull
git push -u origin master
- uses: benc-uk/workflow-dispatch@v1
if: ${{ steps.diff.outputs.changes == '1' }}
with:
workflow: release.yaml
ref: master