-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 1.07 KB
/
Copy pathrun-examples.yaml
File metadata and controls
45 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Run Examples
on:
workflow_dispatch:
inputs: &shared_inputs
jdk:
description: 'JDK version to use'
required: true
type: string
distribution:
description: 'JDK distribution to use'
required: false
type: string
default: 'corretto'
branch:
description: 'Branch to build SDK and run examples from'
required: true
type: string
workflow_call:
inputs: *shared_inputs
jobs:
run-examples:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v5
with:
ref: ${{ inputs.branch }}
- name: Setup JDK
uses: actions/setup-java@v5
with:
java-version: ${{ inputs.jdk }}
distribution: ${{ inputs.distribution }}
- name: Run Examples
env:
XAP_KEY: "${{ secrets.API_KEY }}"
XAP_SECRET: "${{ secrets.API_SECRET }}"
VRBO_KEY: "${{ secrets.VRBO_KEY }}"
VRBO_SECRET: "${{ secrets.VRBO_SECRET }}"
run: |
./gradlew :examples:run