Skip to content

Release 8

Release 8 #45

Workflow file for this run

name: Update Library Chart Development Mode
on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
jobs:
update-charts:
runs-on: ubuntu-latest
if: startsWith(github.base_ref, 'ghga-common/') && !contains(github.event.pull_request.labels.*.name, 'releasable')
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.12.0
- uses: actions/setup-python@v2
with:
python-version: '3.10'
# New version of ruamel.yaml contains fix for https://sourceforge.net/p/ruamel-yaml/tickets/529/
# However, this adds a trailing white space to the Chart.yaml file, which is not compatible with the linter.
- name: Install dependencies for scripts
shell: bash
run: pip install semver ruamel.yaml==0.18.12 requests
- name: Bump Chart version and update dependencies
shell: bash
run: |
CHART_DIR=archive/ DEV=true python ./scripts/library_update.py
- name: Update branch
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Apply automatic changes"
prepare-release:
runs-on: ubuntu-latest
needs: update-charts
if: startsWith(github.base_ref, 'ghga-common/') && contains(github.event.pull_request.labels.*.name, 'releasable')
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Revert previous development mode changes
shell: bash
run: |
git reset --hard HEAD
git checkout HEAD -- base/
- name: Update branch
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Apply automatic changes"