mirror of
https://github.com/hanzo-kotlin/sdk.git
synced 2026-10-30 20:02:19 +00:00
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: CI/CD
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
tags: ["v*"]
|
|
pull_request:
|
|
# A release dispatches this and hands it the document it shipped. With no
|
|
# inputs the run re-reads the locked ref and writes nothing, so the projection
|
|
# moves only by hand.
|
|
workflow_dispatch:
|
|
inputs:
|
|
spec-ref:
|
|
description: "cloud commit to move .spec-lock to. Empty = check the locked ref, write nothing."
|
|
required: false
|
|
default: ''
|
|
spec-version:
|
|
description: "Version to cut this projection at. Empty = derive the next patch."
|
|
required: false
|
|
default: ''
|
|
spec-sha256:
|
|
description: "Expected sha256 of openapi.yaml at that ref. Empty = do not verify."
|
|
required: false
|
|
default: ''
|
|
concurrency:
|
|
group: cicd-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
cicd:
|
|
uses: hanzoai/ci/.hanzo/workflows/build.yml@v1
|
|
with:
|
|
spec-ref: ${{ github.event.inputs.spec-ref || '' }}
|
|
spec-version: ${{ github.event.inputs.spec-version || '' }}
|
|
spec-sha256: ${{ github.event.inputs.spec-sha256 || '' }}
|
|
secrets: inherit
|