Skip to content

Commit cf5a5f7

Browse files
authored
Add Java JDK setup to PR label and assign workflow/ascalad
Added Java setup step to the PR workflow.
1 parent d2da167 commit cf5a5f7

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

.github/workflows/pr-label-assign.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: PR - Label and assign
2-
2+
tab
33
# **What it does**: Labels PRs with size and associated products. Updates assignees to match our CODEOWNERS file.
44
# **Why we have it**: Easier scanning of repo PRs && backend reporting on our team's work.
55
# **Who does it impact**: PCX team
@@ -46,3 +46,47 @@ jobs:
4646
with:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4848
continue-on-error: true
49+
- name: Setup Java JDK
50+
uses: actions/setup-java@v5.2.0
51+
with:
52+
# The Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file
53+
java-version: # optional
54+
# The path to the `.java-version` file. See examples of supported syntax in README file
55+
java-version-file: # optional
56+
# Java distribution. See the list of supported distributions in README file
57+
distribution:
58+
# The package type (jdk, jre, jdk+fx, jre+fx)
59+
java-package: # optional, default is jdk
60+
# The architecture of the package (defaults to the action runner's architecture)
61+
architecture: # optional
62+
# Path to where the compressed JDK is located
63+
jdkFile: # optional
64+
# Set this option if you want the action to check for the latest available version that satisfies the version spec
65+
check-latest: # optional
66+
# ID of the distributionManagement repository in the pom.xml file. Default is `github`
67+
server-id: # optional, default is github
68+
# Environment variable name for the username for authentication to the Apache Maven repository. Default is $GITHUB_ACTOR
69+
server-username: # optional, default is GITHUB_ACTOR
70+
# Environment variable name for password or token for authentication to the Apache Maven repository. Default is $GITHUB_TOKEN
71+
server-password: # optional, default is GITHUB_TOKEN
72+
# Path to where the settings.xml file will be written. Default is ~/.m2.
73+
settings-path: # optional
74+
# Overwrite the settings.xml file if it exists. Default is "true".
75+
overwrite-settings: # optional, default is true
76+
# GPG private key to import. Default is empty string.
77+
gpg-private-key: # optional
78+
# Environment variable name for the GPG private key passphrase. Default is $GPG_PASSPHRASE.
79+
gpg-passphrase: # optional
80+
# Name of the build platform to cache dependencies. It can be "maven", "gradle" or "sbt".
81+
cache: # optional
82+
# The path to a dependency file: pom.xml, build.gradle, build.sbt, etc. This option can be used with the `cache` option. If this option is omitted, the action searches for the dependency file in the entire repository. This option supports wildcards and a list of file names for caching multiple dependencies.
83+
cache-dependency-path: # optional
84+
# Workaround to pass job status to post job step. This variable is not intended for manual setting
85+
job-status: # optional, default is ${{ job.status }}
86+
# The token used to authenticate when fetching version manifests hosted on github.com, such as for the Microsoft Build of OpenJDK. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.
87+
token: # optional, default is ${{ github.server_url == 'https://github.com' && github.token || '' }}
88+
# Name of Maven Toolchain ID if the default name of "${distribution}_${java-version}" is not wanted. See examples of supported syntax in Advanced Usage file
89+
mvn-toolchain-id: # optional
90+
# Name of Maven Toolchain Vendor if the default name of "${distribution}" is not wanted. See examples of supported syntax in Advanced Usage file
91+
mvn-toolchain-vendor: # optional
92+

0 commit comments

Comments
 (0)