Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use "settings_sbt" option? #3

Open
rs-mkaiser opened this issue Feb 24, 2020 · 1 comment
Open

How to use "settings_sbt" option? #3

rs-mkaiser opened this issue Feb 24, 2020 · 1 comment

Comments

@rs-mkaiser
Copy link

The documentation on the README.md is sparse for "settings_sbt".

I'd like to create a ~/.ivy2/.credentials file when running sbt docker:publishLocal through the github action, but it isn't clear how to accomplish that. I do have the file available locally.

Ideas?

Thanks

@cb-ankit-gupta
Copy link

cb-ankit-gupta commented Feb 2, 2021

We are unable to add the Credentials under "settings_sbt". We are getting the following error when we try to use it.

Unexpected input(s) 'settings_sbt', valid inputs are ['entryPoint', 'args', 'commands', 'sbt_project_directory']  

Usage:

- name: SBT action test
  id: sbt
  uses: lokkju/github-action-sbt@master
  with:
    commands: test
    settings_sbt: |
      externalResolvers += "maven-releases" at "https://${{secrets.NEXUS_REGISTRY}}/repository/maven-releases/",
      credentials += Credentials("Sonatype Nexus Repository Manager", "${{secrets.NEXUS_REGISTRY}}", "${{secrets.NEXUS_USERNAME}}", "${{secrets.NEXUS_PASSWORD}}")

It will help us a lot if the documentation had shown how to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants