Skip to content

Commit d9b3357

Browse files
ci: PLT-442: Add Version param
1 parent a2cd18c commit d9b3357

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- master
77
workflow_dispatch:
8+
inputs:
9+
version:
10+
description: Version
11+
type: string
12+
required: true
813

914
jobs:
1015
fern-generate-pr:
@@ -24,6 +29,7 @@ jobs:
2429

2530
- name: Get version from label-studio-sdk
2631
id: sdk-version
32+
if: inputs.version == ''
2733
uses: actions/github-script@v7
2834
with:
2935
github-token: ${{ secrets.GIT_PAT }}
@@ -58,4 +64,4 @@ jobs:
5864
- name: Publish Python SDK PR
5965
env:
6066
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
61-
run: fern generate --group python-sdk-staging --version ${{ steps.sdk-version.outputs.version }} --log-level debug
67+
run: fern generate --group python-sdk-staging --version ${{ inputs.version || steps.sdk-version.outputs.version }} --log-level debug

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# actions-hub
22
.github/actions-hub
3+
4+
label_studio_sdk

0 commit comments

Comments
 (0)