-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (52 loc) · 1.36 KB
/
release.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
53
54
55
56
57
58
---
name: Release
"on":
push:
branches:
- 'main'
workflow_dispatch:
jobs:
gather:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.matrix.outputs.value }}
steps:
- name: Clone current repository
uses: actions/checkout@v3
- name: Gather all folders
id: matrix
run: |
charts="value=["
for chart in $(ls -1 | grep -v -e LICENSE -e README.md); do
charts="${charts}\"${chart}\", "
done
charts="${charts::-2}]"
echo "${charts}" >> $GITHUB_OUTPUT
- name: Debug
run: |
echo "${{ steps.matrix.outputs.value }}"
release:
runs-on: ubuntu-latest
needs:
- gather
strategy:
matrix:
value: $${{ fromJSON(needs.gather.outputs.matrix) }}
steps:
- name: Debug
run: |
echo "${{ matrix.value }}"
# - name: Clone current repository
# uses: actions/checkout@v3
#
# - name: Chart | Push
# uses: appany/[email protected]
# with:
# name: "${{ matrix.value }}"
# repository: tibeer
# tag: 1.0.0
# path: "./${{ matrix.value }}"
# registry: ghcr.io
# registry_username: ${{ github.repository_owner }}
# registry_password: ${{ github.token }}
# #update_dependencies: 'true'