-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (43 loc) · 1.25 KB
/
manual-uri.yml
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
on:
workflow_dispatch:
inputs:
os:
description: 'The type of machine to run the job on'
default: 'ubuntu-latest'
required: true
type: choice
options:
- 'ubuntu-latest'
- 'macos-latest'
- 'macos-14'
- 'windows-latest'
uri:
description: 'URI of JDK archive file to download'
required: true
type: string
install:
description: 'Run actions/setup-java to install the downloaded JDK'
default: 'true'
required: true
type: boolean
jobs:
test:
name: "Setup JDK from URI on ${{ github.event.inputs.os }}"
runs-on: ${{ github.event.inputs.os }}
steps:
- name: 'Check out repository'
uses: actions/checkout@v4
- name: 'Set up JDK'
id: setup
uses: ./
with:
uri: ${{ github.event.inputs.uri }}
install: ${{ github.event.inputs.install }}
- name: 'Print outputs'
shell: bash
run: |
echo 'Outputs'
echo "steps.setup.outputs.archive = ${{ steps.setup.outputs.archive }}"
echo "steps.setup.outputs.version = ${{ steps.setup.outputs.version }}"
- name: 'Print Java version'
run: java -version