Skip to content

Commit de850d4

Browse files
committed
ci: forward bump input from workflow_dispatch to reusable release workflow
The caller workflow defined workflow_dispatch without inputs, so 'gh workflow run release.yml --field bump=...' failed with 'Unexpected inputs provided: ["bump"]'. Declare the bump input on the caller and forward it via 'with:' to the reusable workflow. Tag push still works unchanged — inputs.bump is empty, which the reusable workflow's bump job treats as a no-op.
1 parent e798d56 commit de850d4

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,21 @@ on:
55
tags:
66
- 'v*'
77
workflow_dispatch:
8+
inputs:
9+
bump:
10+
description: 'Version bump type'
11+
required: true
12+
type: choice
13+
options:
14+
- patch
15+
- minor
16+
- major
817

918
jobs:
1019
release:
1120
uses: netresearch/skill-repo-skill/.github/workflows/release.yml@main
21+
with:
22+
bump: ${{ inputs.bump }}
1223
permissions:
1324
contents: write
1425
pull-requests: write

0 commit comments

Comments
 (0)