Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

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

Open
GuillaumeFalourd opened this issue Aug 17, 2021 · 2 comments
Assignees
Labels
📚 documentation Improvements or additions to documentation good first issue Good for newcomers Hacktoberfest https://hacktoberfest.digitalocean.com/ 🔨 improvement Improvement in features ✔️ refined ISSUE refined by the Ritchie Team :octocat: github-actions Related to github actions workflows

Comments

@GuillaumeFalourd
Copy link
Contributor

GuillaumeFalourd commented Aug 17, 2021

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 GuillaumeFalourd added 📚 documentation Improvements or additions to documentation good first issue Good for newcomers 🔨 improvement Improvement in features ✔️ refined ISSUE refined by the Ritchie Team :octocat: github-actions Related to github actions workflows labels Aug 17, 2021
@lucasfonsecazup lucasfonsecazup added the Hacktoberfest https://hacktoberfest.digitalocean.com/ label Oct 1, 2021
@mcruzdev
Copy link

mcruzdev commented Oct 3, 2021

Hi, can you assign it for me :)

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

@abhijeet007rocks8
Copy link

@lucasdittrichzup Is the Issue still Open?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
📚 documentation Improvements or additions to documentation good first issue Good for newcomers Hacktoberfest https://hacktoberfest.digitalocean.com/ 🔨 improvement Improvement in features ✔️ refined ISSUE refined by the Ritchie Team :octocat: github-actions Related to github actions workflows
Projects
None yet
Development

No branches or pull requests

4 participants