ritchie-cli
ritchie-cli copied to clipboard
Add an `action.yml` file to create an Ritchie CLI Setup action on the Github Marketplace
What would you like to be added**:
- A
action.yml
file that would install and initialise Ritchie CLI on a Github runner on any supported OS (ubuntu, macOS and windows).
Why is this needed**:
- To make it easier to use Ritchie-CLI in Github Action workflows.
How can it be done
Suggestion: Create a composite action using shell bash to install and initialise Ritchie CLI.
Until V2.11.3, it would be done like this:
- name: Install Ritchie CLI
run: curl -fsSL https://commons-repo.ritchiecli.io/install.sh | bash
shell: bash
- name: Initialise Ritchie CLI
run: echo '{"addCommons":false, "sendMetrics":false, "runType":"local"}' | rit init --stdin
shell: bash
From 2.12.0 it could be done like this:
- name: Install Ritchie CLI
run: curl -fsSL https://commons-repo.ritchiecli.io/install.sh | bash
shell: bash
- name: Initialise Ritchie CLI
run: rit init --sendMetrics="no" --addCommons="no" --runType="local"
shell: bash
Allowing the user to setup inputs if he wants to select a specific version, add metrics or the commons repo and eventually the runType if it makes sense.
It is possible to use this action repository as reference.
Hi, can you assign it for me :)
Olá, poderia dar o assign dessa issue para mim?
@lucasdittrichzup Is the Issue still Open?