Java-version is not specified on self-hosted but ok on github-runner
See original GitHub issueDescription: I use the following settings in my workflow:
...
jobs:
job-name:
runs-on: [self-hosted]
container:
image: ubuntu:20.04
...
- uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'zulu'
java-package: jdk+fx
cache: gradle
...
It works fine on GitHub-hosted runners but fails on clear Ubuntu 20.04/22.04 installation with error:
Error: Input required and not supplied: java-version
I’m ready to provide additional debug from worker logs but id doesn’t contain useful information. Advice please how get additional debugging information. Maybe there is an option to run action manually inside docker container
Task version: v2
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Repro steps:
- Install Ubuntu official distribution on Hyper-V virtual machine (check Docker as additional option to be installed)
- Install runner according to official article and run as a service.
Expected behavior: Java installed
Actual behavior: Workflow crashed
Issue Analytics
- State:
- Created a year ago
- Comments:24 (12 by maintainers)
Top Results From Across the Web
Create a Docker based Self Hosted GitHub runner Linux ...
Prepare Bash Scripts used in image creation. Now that we have Docker-Desktop as well as Docker-Compose installed and set to use Linux Containers ......
Read more >java - Mvn is not recognized as a command on Github Actions ...
I set up a simple Github Actions workflow simply to check if my self-hosted Windows Virtual Machine is able to recognize the installed ......
Read more >All About Github Runner on AWS Spot Instances | Incredibuild
This article describes how to set up a GitHub Actions self-hosted runner on an AWS spot instance. But first, let's talk about what...
Read more >unrecognized named-value: 'env' - You.com | The search engine ...
I am using github runner to build app for Android, iOS and Web. We have multiple sharing code projects ... but The workflow...
Read more >How to build Gradle projects with GitHub Actions - Tom Gregory
yes, I already mentioned this but it's worth repeating. ... in your CI process like downloading the right Java version for Gradle to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Documentation contribution is here https://github.com/github/docs/pull/19309
@bissquit i’ll move the issue to the Waiting for rollout state because there’s nothing to do with it anymore and i will close it as soon as the documentation change will have been either approved or denied. But please feel free to create new issue or reopen this one in case if the problem not solved. Thanks for the cooperation.
Looks great! Thank you so much!