Skip to content

Commit 3efe43f

Browse files
authored
chore: update and split actions for SDK generation and release (#180)
1 parent dd71aac commit 3efe43f

File tree

4 files changed

+38
-12
lines changed

4 files changed

+38
-12
lines changed
Lines changed: 6 additions & 11 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:
2924
name: rapid
3025
version: ${{ inputs.version }}
3126
transformations: "-th -te /v3 --operationIdsToTags"
32-
repository: 'ExpediaGroup/rapid-java-sdk'
33-
sdk_repo_ref: ${{ inputs.sdk_repo_ref }}
27+
repository: 'ExpediaGroup/rapid-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 }}

code/LICENSE-HEADER.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (C) 2024 Expedia, Inc.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

code/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@
748748
<dependency>
749749
<groupId>org.apache.commons</groupId>
750750
<artifactId>commons-lang3</artifactId>
751-
<version>3.17.0</version>
751+
<version>3.14.0</version>
752752
</dependency>
753753

754754
<dependency>

0 commit comments

Comments
 (0)