Skip to content

Commit c4dfa02

Browse files
authored
chore: update and split actions for SDK generation and release (#6)
1 parent 3f26bd9 commit c4dfa02

File tree

2 files changed

+25
-12
lines changed

2 files changed

+25
-12
lines changed
Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Generate and Publish SDK
1+
name: Generate and Publish SDK Sources
22

33
on:
44
workflow_dispatch:
@@ -11,23 +11,18 @@ on:
1111
type: string
1212
sdk_repo_ref:
1313
description: |
14-
Branch or tag to checkout on the `expediagroup-sdk-core` repository.
15-
Leave empty to use the default branch.
16-
type: string
17-
default: ''
18-
ref:
19-
description: |
20-
Branch or tag to checkout on the provided repository.
14+
Branch or tag to checkout on the `expediagroup-java-sdk` repository.
2115
Leave empty to use the default branch.
2216
type: string
2317
default: ''
18+
2419
jobs:
25-
generate-and-publish:
20+
generate-and-publish-sources:
2621
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-full-workflow.yaml@main
2722
secrets: inherit
2823
with:
29-
name: rapid
24+
name: xap
3025
version: ${{ inputs.version }}
3126
transformations: "-th --operationIdsToTags"
32-
repository: 'ExpediaGroup/xap-java-sdk'
33-
sdk_repo_ref: ${{ inputs.sdk_repo_ref }}
27+
repository: 'ExpediaGroup/xap-java-sdk'
28+
sdk_repo_ref: ${{ inputs.sdk_repo_ref }}

.github/workflows/release-sdk.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release SDK
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: |
8+
Branch to release the SDK from.
9+
Defaults to the branch the action is being run from.
10+
type: string
11+
default: ''
12+
13+
jobs:
14+
release-sdk:
15+
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-release-sdk.yaml@main
16+
secrets: inherit
17+
with:
18+
branch: ${{ inputs.branch }}

0 commit comments

Comments
 (0)