Title: Add output parameter with path to installed JDK · Issue #65 · actions/setup-java · GitHub
Open Graph Title: Add output parameter with path to installed JDK · Issue #65 · actions/setup-java
X Title: Add output parameter with path to installed JDK · Issue #65 · actions/setup-java
Description: When calling the action several times, it will overwrite the JAVA_HOME environment variable and prepend it to the PATH, effectively shadowing a previous run of the action. Fortunately, it will also set a JAVA_HOME_ Open Graph Description: When calling the action several times, it will overwrite the JAVA_HOME environment variable and prepend it to the PATH, effectively shadowing a previous run of the action. Fortunately, it will also...
X Description: When calling the action several times, it will overwrite the JAVA_HOME environment variable and prepend it to the PATH, effectively shadowing a previous run of the action. Fortunately, it will also...
Opengraph URL: https://github.com/actions/setup-java/issues/65
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add output parameter with path to installed JDK","articleBody":"When calling the action several times, it will overwrite the `JAVA_HOME` environment variable and prepend it to the `PATH`, effectively _shadowing_ a previous run of the action.\r\nFortunately, it will also set a `JAVA_HOME_\u003cversion\u003e_\u003carchitecture\u003e` environment variable, but this could be more _idiomatic_ as an output parameter (in addition to the environment variable, which can also be useful on its own: https://github.com/actions/setup-java/issues/44#issuecomment-579776451)\r\n\r\nThis would be a great addition to #21 \r\n\r\nThat way, one could write something like:\r\n```yaml\r\n- name: Setup JDK 11\r\n id: setup-java-11\r\n uses: actions/setup-java@v1\r\n with:\r\n java-version: 11\r\n # here with #21, one would disable \"installation\"\r\n- name: Setup JDK 14\r\n id: setup-java-14\r\n uses: actions/setup-java@v1\r\n with:\r\n java-version: 14\r\n # here with #21, one would disable \"installation\"\r\n- name: Setup JDK 8\r\n # Ran last due each run shadowing the previous ones; see also #21\r\n uses: actions/setup-java@v1\r\n with:\r\n java-version: 8\r\n- name: Build and run tests (with JDK 8)\r\n run: ./gradlew build\r\n- name: Run tests with JDK 11\r\n run: ./gradlew test -Ptest.jdk-path=\"${{ steps.setup-java-11.outputs.jdk-path }}\"\r\n- name: Run tests with JDK 14\r\n run: ./gradlew test -Ptest.jdk-path=\"${{ steps.setup-java-14.outputs.jdk-path }}\"\r\n```\r\n(here, the build is still running with JDK 8, but it coud configure its tests to actually use another JDK)","author":{"url":"https://github.com/tbroyer","@type":"Person","name":"tbroyer"},"datePublished":"2020-05-24T11:32:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/65/setup-java/issues/65"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:40e059c9-da67-5d23-0d4e-d05b592f0807 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id C62A:3F7705:5E31EF:82D060:6A5381F5 html-safe-nonce 6d3dd6c3a48f6c02f534c6bd995dfcacbc4d5a258b726f24170c660f68eddaa6 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjJBOjNGNzcwNTo1RTMxRUY6ODJEMDYwOjZBNTM4MUY1IiwidmlzaXRvcl9pZCI6Ijg3NjU1NjQyNjMzMDc5MDM0NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac 1161ad7cbf54fb1e9b9feea0fdde319313a67a9d21dbc823af1aec321f3a84be hovercard-subject-tag issue:623846313 github-keyboard-shortcuts repository,issues,actions,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-java/65/issue_layout twitter:image https://opengraph.githubassets.com/2a9b132b0e3e9babdf3ade43bbe8915b2b1b768c5a97a4a721145defff6b5ceb/actions/setup-java/issues/65 twitter:card summary_large_image og:image https://opengraph.githubassets.com/2a9b132b0e3e9babdf3ade43bbe8915b2b1b768c5a97a4a721145defff6b5ceb/actions/setup-java/issues/65 og:image:alt When calling the action several times, it will overwrite the JAVA_HOME environment variable and prepend it to the PATH, effectively shadowing a previous run of the action. Fortunately, it will also... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username tbroyer hostname github.com expected-hostname github.com None b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb turbo-cache-control no-preview go-import github.com/actions/setup-java git https://github.com/actions/setup-java.git octolytics-dimension-user_id 44036562 octolytics-dimension-user_login actions octolytics-dimension-repository_id 196057608 octolytics-dimension-repository_nwo actions/setup-java octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 196057608 octolytics-dimension-repository_network_root_nwo actions/setup-java turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 07a982c1d40157c619b364352b704c3ce66bb332 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.