Closed jwagantall closed 7 months ago
@MightyNerdEric thank you for your input. I think the biggest issue is having the settings constructed using these variables. Is there a way that we can take these servers/user/pass and add them to the project's global-settings file? If so we can pick them from there but not sure how the passwords would be introduced.
Wouldn't it be nice if GH could store secret files? :)
GH can store secret files. For example, this is a replacement for creating the global settings file that I came up with:
- name: Create global settings file
run: |
echo "${{ vars.MVN_GLOBAL_SETTINGS }}" > settings.xml
I'm using a variable there, but a secret would work much the same way.
Oh,, I see... so MVN_GLOBAL_SETTINGS can contain a full file, with indentation and all ?
Use s4u/maven-settings-action to setup maven settings.xml The following variables need to be present in the project: