ritchie-cli icon indicating copy to clipboard operation
ritchie-cli copied to clipboard

Add an `action.yml` file to create an Ritchie CLI Setup action on the Github Marketplace

Open GuillaumeFalourd opened this issue 2 years ago • 2 comments

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.

GuillaumeFalourd avatar Aug 17 '21 20:08 GuillaumeFalourd

Hi, can you assign it for me :)

Olá, poderia dar o assign dessa issue para mim?

mcruzdev avatar Oct 03 '21 23:10 mcruzdev

@lucasdittrichzup Is the Issue still Open?

abhijeet007rocks8 avatar Oct 17 '21 05:10 abhijeet007rocks8