-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.58 KB
/
contributing_update_all.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#Updates contributing files for all charms in calling repo as necessary, creating a PR for any that are outdated
name: 'Update all Contributing Files'
on:
workflow_call:
inputs:
branch:
description: 'The branch to get the contributing template file from'
required: false
default: 'main'
type: 'string'
outputs:
charm_paths:
description: 'Charm paths'
value: ${{ jobs.get-charm-paths.outputs.charm-paths }}
jobs:
get-charm-paths:
name: Generate the Charm Matrix content
runs-on: ubuntu-latest
outputs:
charm_paths: ${{ steps.get-charm-paths.outputs.charm-paths }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get paths for all charms in this repo
id: get-charm-paths
uses: canonical/kubeflow-ci/actions/get-charm-paths@main
echo-charm-paths:
name: Echo charm paths emitted
runs-on: ubuntu-latest
needs: get-charm-paths
steps:
- run: echo "Got charm_paths ${{ needs.get-charm-paths.outputs.charm_paths }}"
use-charm-paths:
name: Use charm paths in a matrix
runs-on: ubuntu-latest
needs: get-charm-paths
strategy:
fail-fast: false
matrix:
charm-path: ${{ fromJson(needs.get-charm-paths.outputs.charm_paths) }}
steps:
- run: echo "Got charm path ${{ matrix.charm-path }}"
- name: Call Contributing Update
uses: canonical/kubeflow-ci/actions/contributing-update@main
with:
branch: ${{ inputs.branch }}
charm_path: ${{ matrix.charm-path }}