1
1
name : Update dependencies
2
2
3
3
on :
4
- # Allow manual executions
5
- workflow_dispatch :
6
- # Run nightly
7
- schedule :
8
- - cron : ' 0 0 * * *'
4
+ workflow_call :
5
+ inputs :
6
+ openstack_version :
7
+ description : OpenStack version
8
+ type : string
9
+ required : true
9
10
10
11
jobs :
11
12
propose_github_release_updates :
@@ -38,20 +39,14 @@ jobs:
38
39
- name : Checkout
39
40
uses : actions/checkout@v4
40
41
with :
42
+ ref : ${{ inputs.openstack_version }}
41
43
path : ${{ github.workspace }}/src/kayobe-config
42
44
43
- - name : Determine OpenStack release
44
- id : openstack_release
45
- run : |
46
- BRANCH=$(awk -F'=' '/defaultbranch/ {print $2}' .gitreview)
47
- echo "openstack_release=${BRANCH}" | sed -E "s,(stable|unmaintained)/,," >> $GITHUB_OUTPUT
48
- working-directory : ${{ github.workspace }}/src/kayobe-config
49
-
50
45
- name : Checkout the dependency repo
51
46
uses : actions/checkout@v4
52
47
with :
53
48
repository : ${{ matrix.repository }}
54
- ref : stackhpc/ ${{ steps.openstack_release.outputs.openstack_release }}
49
+ ref : ${{ inputs.openstack_version }}
55
50
fetch-tags : true
56
51
path : ${{ github.workspace }}/src/${{ matrix.key }}
57
52
@@ -78,10 +73,10 @@ jobs:
78
73
path : ${{ github.workspace }}/src/kayobe-config
79
74
commit-message : >-
80
75
Bump ${{ matrix.key }} to ${{ steps.latest_tag.outputs.latest_tag }}
81
- branch : update-dependency/${{ matrix.key }}
76
+ branch : update-dependency/${{ matrix.key }}/${{ inputs.openstack_version }}
82
77
delete-branch : true
83
78
title : >-
84
- Bump ${{ matrix.key }} to ${{ steps.latest_tag.outputs.latest_tag }}
79
+ Bump ${{ inputs.openstack_version }} ${{ matrix.key }} to ${{ steps.latest_tag.outputs.latest_tag }}
85
80
body : >
86
- This PR was created automatically to update
81
+ This PR was created automatically to update ${{ inputs.openstack_version }}
87
82
${{ matrix.key }} to ${{ steps.latest_tag.outputs.latest_tag }}.
0 commit comments