Skip to content

Commit 6f49ea9

Browse files
authored
Merge branch 'main' into dependabot/maven/tests/integration/main/org.apache.maven.plugins-maven-failsafe-plugin-3.5.2
2 parents 833eec8 + 0526692 commit 6f49ea9

File tree

4 files changed

+16
-85
lines changed

4 files changed

+16
-85
lines changed

.github/workflows/generate-and-publish-sdk-sources.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ on:
1212

1313
jobs:
1414
generate-and-publish-sources:
15-
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-full-workflow.yaml@v20241217
15+
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-full-workflow.yaml@v20250120
1616
secrets: inherit
1717
with:
1818
name: xap
1919
ref: ${{ github.head_ref || github.ref_name }}
2020
repository: 'ExpediaGroup/xap-java-sdk'
21-
sdk_repo_ref: 'v20241217'
21+
sdk_repo_ref: 'v20250120'
2222
transformations: '--headers key --operationIdsToTags'
2323
version: ${{ inputs.version }}

.github/workflows/generate-docs-site.yml

Lines changed: 12 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -2,90 +2,21 @@ name: Deploy Reference Documentation
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
ref:
7+
description: 'Branch or tag to deploy reference docs from. Defaults to current branch.'
8+
type: string
9+
required: false
10+
default: ''
511

612
permissions:
713
id-token: write
814

915
jobs:
1016
deploy-reference-docs:
11-
runs-on: ubuntu-latest
12-
13-
steps:
14-
- name: Checkout "main" Branch
15-
uses: actions/checkout@v4
16-
with:
17-
ref: main
18-
19-
- name: Setup Java 21
20-
uses: actions/setup-java@v4
21-
with:
22-
distribution: 'corretto'
23-
java-version: '21'
24-
25-
- name: Configure Git
26-
run: |
27-
git config --global user.email "[email protected]"
28-
git config --global user.name "eg-oss-ci"
29-
git fetch --all
30-
31-
- name: Checkout "gh-pages" Branch
32-
run: git checkout gh-pages
33-
34-
- name: Extract and Store Latest Live Docs Version Number
35-
run: echo "LATEST_DOCS_VERSION=$(jq -r '.version' version.json)" >> $GITHUB_ENV
36-
37-
- name: Move Latest Docs to the "older" Directory (Archiving latest live release)
38-
run: |
39-
mkdir older/${{ env.LATEST_DOCS_VERSION }}
40-
mv images xap-sdk scripts styles index.html navigation.html not-found-version.html version.json older/${{ env.LATEST_DOCS_VERSION }}
41-
42-
- name: Move the "older" and "assets" Directories to a Temporary Workspace
43-
run: mv older assets ${{ runner.temp }}
44-
45-
- name: Checkout "main" Branch
46-
run: git checkout main
47-
48-
- name: Generate New Release Reference Docs
49-
run: mvn -f code dokka:dokka -Ddokka-old-versions.location=${{ runner.temp }}/older -Ddokka-assets.location=${{ runner.temp }}/assets
50-
51-
- name: Extract and Store Newly Generated Docs Version Number
52-
run: echo "NEW_DOCS_VERSION=$(jq -r '.version' code/target/dokka/version.json)" >> $GITHUB_ENV
53-
54-
- name: Check the New Release Version
55-
run: |
56-
for dir in ${{ runner.temp }}/older/*; do
57-
if [ -d "$dir" ]; then
58-
DIR_NAME=$(basename "$dir")
59-
if [ "$DIR_NAME" == "${{ env.NEW_DOCS_VERSION }}" ]; then
60-
echo "Error: Reference Docs with version ${{env.NEW_DOCS_VERSION }} already exists."
61-
echo "Hint: Make sure to update the project version in the pom.xml file"
62-
exit 1
63-
fi
64-
fi
65-
done
66-
67-
- name: Move the Newly Generated Docs to a Temporary Workspace
68-
run: mv code/target/dokka ${{ runner.temp }}/${{ env.NEW_DOCS_VERSION }}
69-
70-
- name: Checkout "gh-pages" Branch
71-
run: git checkout gh-pages
72-
73-
- name: Cleanup Old Docs from the Repository's Root
74-
run: rm -rf code images older xap-sdk scripts styles index.html navigation.html not-found-version.html version.json
75-
76-
- name: Move Newly Generated Docs to the Repository Root
77-
run: mv ${{ runner.temp }}/${{ env.NEW_DOCS_VERSION }}/* .
78-
79-
- name: Commit the New Release
80-
run: |
81-
git add .
82-
git commit -m "chore: publishing docs for version ${{ env.NEW_DOCS_VERSION }}"
83-
84-
- name: Create Pull Request
85-
uses: peter-evans/create-pull-request@v7
86-
with:
87-
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
88-
commit-message: "chore: publishing docs for version ${{ env.NEW_DOCS_VERSION }}"
89-
body: "This PR adds the reference documentation for version ${{ env.NEW_DOCS_VERSION }}."
90-
title: "chore: reference docs update for version ${{ env.NEW_DOCS_VERSION }}"
91-
branch: "docs-update-${{ env.NEW_DOCS_VERSION }}"
17+
uses: "ExpediaGroup/expediagroup-java-sdk/.github/workflows/generate-ref-docs.yaml@main"
18+
with:
19+
buildsystem: 'maven'
20+
ref: ${{ inputs.ref != '' && inputs.ref || github.ref }}
21+
secrets:
22+
GITHUB_PAT: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

.github/workflows/release-sdk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
jdk: ${{ matrix.jdk }}
2323

2424
release-sdk:
25-
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-release-sdk.yaml@v20241217
25+
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-release-sdk.yaml@v20250120
2626
needs: [ integration-tests ]
2727
secrets: inherit
2828
with:

tests/integration/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<dependency>
5252
<groupId>org.junit.jupiter</groupId>
5353
<artifactId>junit-jupiter</artifactId>
54-
<version>5.11.3</version>
54+
<version>5.11.4</version>
5555
<scope>test</scope>
5656
</dependency>
5757
<dependency>

0 commit comments

Comments
 (0)