Skip to content

Latest commit

 

History

History
102 lines (71 loc) · 4.86 KB

README.md

File metadata and controls

102 lines (71 loc) · 4.86 KB

Ritchie CLI Action

Action test on Ubuntu Action test on MacOs Action test on Windows

title

Github Action to run Ritchie CLI commands on any OS runner ⚙️🖥


📚 Usage

Public workflows that use this action.Who is using this action? 🧑‍💻

Requirements

⚠️ The actions/checkout is mandatory to use this action on WINDOWS RUNNER, as the repository root is used to install and execute Ritchie binary.

⚠️ Actions to setup environments may be necessary to use this action depending on the runner or the programming language that will be used to run and build the formula. For example:


♻️ Scenarios

1️⃣ Run formula from PUBLIC Github repository

Unix

    steps:
      - uses: # setup for formula programming language if needed
      - uses: GuillaumeFalourd/ritchie-cli-action@v1
        with:
          rit_formula_command: rit demo coffee-python --rit_name=Dennis --rit_coffee_type=espresso --rit_delivery=false
          rit_repo_url: https://github.com/ZupIT/ritchie-formulas-demo

Windows

    steps:
      - uses: actions/[email protected]
      - uses: # setup for formula programming language if needed
      - uses: GuillaumeFalourd/ritchie-cli-action@v1
        with:
          rit_formula_command: ./rit.exe demo coffee-python --rit_name=Dennis --rit_coffee_type=espresso --rit_delivery=false
          rit_repo_url: https://github.com/ZupIT/ritchie-formulas-demo

2️⃣ Run formula from PRIVATE Github repository

Unix

    steps:
      - uses: # setup for formula programming language if needed
      - uses: GuillaumeFalourd/ritchie-cli-action@v1
        with:
          rit_formula_command: rit python math sum numbers --number_one=1 --number_two=2
          rit_repo_url: https://github.com/GuillaumeFalourd/formulas-training
          access_token: ${{ secrets.ACCESS_TOKEN }}

Windows

    steps:
      - uses: actions/[email protected]
      - uses: # setup for formula programming language if needed
      - uses: GuillaumeFalourd/ritchie-cli-action@v1
        with:
          rit_formula_command: ./rit.exe python math sum numbers --number_one=1 --number_two=2
          rit_repo_url: https://github.com/GuillaumeFalourd/formulas-training
          access_token: ${{ secrets.ACCESS_TOKEN }}

▶️ Action Inputs

Field Mandatory Observation
rit_formula_command YES Ritchie formula command line.
e.g: rit demo hello-world (UNIX)
e.g: ./rit.exe demo hello-world (WINDOWS)
rit_repo_url YES Github repository where the formula's code is located.
e.g: https://github.com/ZupIT/ritchie-formulas-demo
access_token NO Github Personal Access Token with access to the private formulas repository to import.

Note: Formula's generated outputs (files or directories) will be located at the repository root ($GITHUB_WORKSPACE).


🤝 Contributing

Guidelines

🏅 Licensed

☞ This repository uses the Apache License 2.0