Coder Social home page Coder Social logo

guillaumefalourd / ritchie-action-python Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 19 KB

Ritchie CLI github action for PYTHON ๐Ÿค–

Home Page: https://ritchiecli.io/

License: Apache License 2.0

Dockerfile 46.17% Shell 53.83%
python github-actions ritchie-cli

ritchie-action-python's Introduction

ritchie-action-python

Public workflows that use this action.

This Github action works for Ritchie CLI formulas implemented in Python.

Action workflow (PUBLIC)

Action workflow (PRIVATE)

How to use this action?

Field Mandatory Observation
rit-repo-url YES Formula repository URL
rit-formula-command YES Formula command with input flags

Executing a formula from a PUBLIC repository

name: Action workflow

on:
 push:
 workflow_dispatch:

jobs:
  action_job:
    runs-on: ubuntu-latest
    name: Ritchie Action
    steps:
    - name: Run Ritchie Action Command with PUBLIC repository
      uses: GuillaumeFalourd/[email protected]
      with:
        rit-repo-url: https://github.com/ZupIT/ritchie-formulas-demo
        rit-formula-command: rit demo coffee-python --rit_name=Dennis --rit_coffee_type=espresso --rit_delivery=false

Where:

  • rit-repo-url is the Github formula public repository url where the formula is located.
  • rit-formula-command is the formula command (with input flags if needed) implemented in python.

Executing a formula from a PRIVATE repository

name: Action workflow

on:
 push:
 workflow_dispatch:

jobs:
  action_job:
    runs-on: ubuntu-latest
    name: Ritchie Action
    steps:
    - name: Run Ritchie Action Command with PRIVATE repository
      uses: GuillaumeFalourd/[email protected]
      env:
        CREDENTIAL_GITHUB_USERNAME: ${{ secrets.CREDENTIAL_GITHUB_USERNAME }}
        CREDENTIAL_GITHUB_TOKEN: ${{ secrets.CREDENTIAL_GITHUB_TOKEN }}
      with:
        rit-repo-url: https://github.com/GuillaumeFalourd/formulas-training
        rit-formula-command: rit python math sum numbers --number_one=1 --number_two=2

Where:

  • CREDENTIAL_GITHUB_USERNAME is the GITHUB USERNAME saved as a secret.
  • CREDENTIAL_GITHUB_TOKEN is the GITHUB PERSONAL ACCESS TOKEN with full repository access saved as a secret.
  • rit-repo-url is the Github formula private repository url where the formula is located.
  • rit-formula-command is the formula command (with input flags if needed) implemented in Shell.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.