Skip to content

Public composite action: should we call actions/checkout and actions/setup-java? #73309

Answered by TWiStErRob
rsenden asked this question in Actions
Discussion options

You must be logged in to vote

Related issue: actions/setup-java#552 which might solve the actions/setup-java part.

As a workaround, I guess we could hack...

save all the JAVA_HOME* and PATH variables to a temp file, something like:

env | grep '^JAVA_HOME_|^PATH' > "${{ runner.temp }}/pre-vars"

and then as a post:/last step (if: success() || failure()): do a

cat ${{ runner.temp }}/pre-vars" >> "${GITHUB_ENV}"

(totally untested, scripts only for comms.)

Re checkout: I would leave that to the user, because you can't know how to clone their repo (submodules, sparse, history, token!, etc.).

Considering the age of this, what did you end up doing?

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@rsenden
Comment options

Comment options

You must be logged in to vote
1 reply
@rsenden
Comment options

Answer selected by rsenden
Comment options

You must be logged in to vote
1 reply
@rsenden
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question
4 participants