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 Manual2+
3+
permissions:4+
contents: write5+
packages: write6+
7+
on:8+
workflow_dispatch:9+
inputs:10+
tag:11+
description: 'helmwave tag'12+
required: true13+
type: string14+
15+
jobs:16+
generate-schema:17+
runs-on: ubuntu-latest18+
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 schema23+
run: helmwave schema > schema.json24+
25+
- name: upload artifact26+
uses: actions/upload-artifact@v427+
with:28+
name: schema.json29+
path: schema.json30+
31+
upload-schema:32+
runs-on: ubuntu-latest33+
needs:34+
- generate-schema35+
steps:36+
- uses: actions/checkout@v437+
with:38+
fetch-depth: 039+
40+
- name: download artifact41+
uses: actions/download-artifact@v442+
with:43+
name: schema.json44+
45+
- name: upload to release46+
env:47+
GH_TOKEN: ${{ github.token }}48+
TAG: v${{ github.event.inputs.tag }}49+
run: gh release upload $TAG schema.json50+
.github/workflows/json-schema.ymlmodifiedView file
Loading diffโฆ