ZupIT / ritchie-cli

Ritchie CLI is an open-source tool that allows to create, store and share any kind of automation, executing them through command lines, to run operations or start workflows ⚙️ 🖥 💡
https://docs.ritchiecli.io
Apache License 2.0
561 stars 104 forks source link

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

Open GuillaumeFalourd opened 2 years ago

GuillaumeFalourd commented 2 years ago

What would you like to be added**:

Why is this needed**:

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.

mcruzdev commented 2 years ago

Hi, can you assign it for me :)

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

abhijeet007rocks8 commented 2 years ago

@lucasdittrichzup Is the Issue still Open?