Skip to content

Commit

Permalink
Kolla dependency updates on non-default branches (#1552)
Browse files Browse the repository at this point in the history
* Allow kolla tag updates on non-default branches

* Fixup matrices

* Reno

* Include version in title
  • Loading branch information
assumptionsandg authored Mar 3, 2025
1 parent e90aace commit 88ade26
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 16 deletions.
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
27 changes: 11 additions & 16 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,10 +73,10 @@ 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 }}
Bump ${{ inputs.openstack_version }} ${{ matrix.key }} to ${{ steps.latest_tag.outputs.latest_tag }}
body: >
This PR was created automatically to update
This PR was created automatically to update ${{ inputs.openstack_version }}
${{ matrix.key }} to ${{ steps.latest_tag.outputs.latest_tag }}.
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.

0 comments on commit 88ade26

Please sign in to comment.