Skip to content

.github/workflows/manual-uri.yml #5

.github/workflows/manual-uri.yml

.github/workflows/manual-uri.yml #5

Workflow file for this run

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