Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kolla dependency updates on non-default branches #1552

Merged
merged 4 commits into from
Mar 3, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/stackhpc-update-kolla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Update Kolla versions

on:
# Allow manual executions
workflow_dispatch:
# Run nightly
schedule:
- cron: '0 0 * * *'

jobs:
update-from-branch:
name: Update dependencies
strategy:
matrix:
include:
- version: stackhpc/2023.1
- version: stackhpc/2024.1
uses: ./.github/workflows/update-dependencies.yml
with:
openstack_version: ${{ matrix.version }}
permissions:
contents: write
pull-requests: write
23 changes: 9 additions & 14 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Update dependencies

on:
# Allow manual executions
workflow_dispatch:
# Run nightly
schedule:
- cron: '0 0 * * *'
workflow_call:
inputs:
openstack_version:
description: OpenStack version
type: string
required: true

jobs:
propose_github_release_updates:
Expand Down Expand Up @@ -38,20 +39,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.openstack_version }}
path: ${{ github.workspace }}/src/kayobe-config

- name: Determine OpenStack release
id: openstack_release
run: |
BRANCH=$(awk -F'=' '/defaultbranch/ {print $2}' .gitreview)
echo "openstack_release=${BRANCH}" | sed -E "s,(stable|unmaintained)/,," >> $GITHUB_OUTPUT
working-directory: ${{ github.workspace }}/src/kayobe-config

- name: Checkout the dependency repo
uses: actions/checkout@v4
with:
repository: ${{ matrix.repository }}
ref: stackhpc/${{ steps.openstack_release.outputs.openstack_release }}
ref: ${{ inputs.openstack_version }}
fetch-tags: true
path: ${{ github.workspace }}/src/${{ matrix.key }}

Expand All @@ -78,7 +73,7 @@ jobs:
path: ${{ github.workspace }}/src/kayobe-config
commit-message: >-
Bump ${{ matrix.key }} to ${{ steps.latest_tag.outputs.latest_tag }}
branch: update-dependency/${{ matrix.key }}
branch: update-dependency/${{ matrix.key }}/${{ inputs.openstack_version }}
delete-branch: true
title: >-
Bump ${{ matrix.key }} to ${{ steps.latest_tag.outputs.latest_tag }}
Expand Down
4 changes: 4 additions & 0 deletions releasenotes/notes/kolla-update-fixes-5ff55225ce85441f.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
features:
- |
Allow Kolla dependency updates on non-default branches.
Loading