Skip to content

Commit 948bcb8

Browse files
committed
ci: add cascade.yml — delegate bump-upstream to pilot-protocol/release@main
1 parent cce9239 commit 948bcb8

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/cascade.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: cascade
2+
3+
# Auto-generated cascade shim. Delegates the bump-build-tag dance to
4+
# pilot-protocol/release. Adding a workflow_dispatch trigger lets us
5+
# exercise the cascade manually before the GitHub App is set up.
6+
7+
on:
8+
repository_dispatch:
9+
types: [bump-upstream]
10+
workflow_dispatch:
11+
inputs:
12+
upstream:
13+
description: 'Upstream Go module (e.g. github.com/pilot-protocol/common)'
14+
required: true
15+
type: string
16+
version:
17+
description: 'Upstream version (e.g. v0.4.0 or v0.5.0-beta.1)'
18+
required: true
19+
type: string
20+
is_prerelease:
21+
description: 'true if upstream is a beta/rc'
22+
required: false
23+
type: boolean
24+
default: false
25+
26+
permissions:
27+
contents: write
28+
29+
jobs:
30+
bump:
31+
uses: pilot-protocol/release/.github/workflows/tag-bump.yml@main
32+
with:
33+
upstream: ${{ inputs.upstream || github.event.client_payload.upstream }}
34+
version: ${{ inputs.version || github.event.client_payload.version }}
35+
is_prerelease: ${{ inputs.is_prerelease == true || github.event.client_payload.is_prerelease == true }}
36+
stable_only: true

0 commit comments

Comments
 (0)