New ๐ŸŒŠ wave for @helm

Commit 52b87eb8

52b87eb8e008Merged

Dmitrii Zhiliaev <[email protected]> ยท 1 year ago ยท 2 files ยท +1 added ยท ~1 modified

Description

fix(ci): 2 files for json-schema (gha is ๐Ÿ’ฉ)

Signed-off-by: Dmitrii Zhiliaev [email protected]

Details

Commit
52b87eb8e008
Parent
5790b7a49124

.github/workflows/json-schema-manual.ymladdedView file

1+name: JSON Schema Manual
2+
3+permissions:
4+ contents: write
5+ packages: write
6+
7+on:
8+ workflow_dispatch:
9+ inputs:
10+ tag:
11+ description: 'helmwave tag'
12+ required: true
13+ type: string
14+
15+jobs:
16+ generate-schema:
17+ runs-on: ubuntu-latest
18+ container:
19+ # I hate gha, Because I can't pass variables to image tag with string manipulation.
20+ image: ${{ format('ghcr.io/{0}:{1}', github.repository, github.event.inputs.tag) }}
21+ steps:
22+ - name: generate schema
23+ run: helmwave schema > schema.json
24+
25+ - name: upload artifact
26+ uses: actions/upload-artifact@v4
27+ with:
28+ name: schema.json
29+ path: schema.json
30+
31+ upload-schema:
32+ runs-on: ubuntu-latest
33+ needs:
34+ - generate-schema
35+ steps:
36+ - uses: actions/checkout@v4
37+ with:
38+ fetch-depth: 0
39+
40+ - name: download artifact
41+ uses: actions/download-artifact@v4
42+ with:
43+ name: schema.json
44+
45+ - name: upload to release
46+ env:
47+ GH_TOKEN: ${{ github.token }}
48+ TAG: v${{ github.event.inputs.tag }}
49+ run: gh release upload $TAG schema.json
50+