Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guillaumefalourd/ritchie-action-go-15
Ritchie CLI github action for GOLANG 15 🤖
https://github.com/guillaumefalourd/ritchie-action-go-15
github-actions golang ritchie-cli
Last synced: about 2 months ago
JSON representation
Ritchie CLI github action for GOLANG 15 🤖
- Host: GitHub
- URL: https://github.com/guillaumefalourd/ritchie-action-go-15
- Owner: GuillaumeFalourd
- License: apache-2.0
- Created: 2021-03-29T13:40:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-14T14:49:00.000Z (over 3 years ago)
- Last Synced: 2024-10-18T04:04:01.058Z (3 months ago)
- Topics: github-actions, golang, ritchie-cli
- Language: Dockerfile
- Homepage: https://ritchiecli.io/
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ritchie-action-go-15
This Github action works for [Ritchie CLI](https://ritchiecli.io/) formulas implemented in **Golang**.
[![Action workflow (PUBLIC)](https://github.com/GuillaumeFalourd/ritchie-action-go-15/actions/workflows/public-repo-demo-workflow.yml/badge.svg)](https://github.com/GuillaumeFalourd/ritchie-action-go-15/actions/workflows/public-repo-demo-workflow.yml)
[![Action workflow (PRIVATE)](https://github.com/GuillaumeFalourd/ritchie-action-go-15/actions/workflows/private-repo-demo-workflow.yml/badge.svg)](https://github.com/GuillaumeFalourd/ritchie-action-go-15/actions/workflows/private-repo-demo-workflow.yml)
## 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
```bash
name: Action workflowon:
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-go --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
```bash
name: Action workflowon:
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 go math sum numbers --number_one=1 --number_two=2
```**Where:**
- `CREDENTIAL_GITHUB_USERNAME` is the GITHUB USERNAME saved [as a secret](https://docs.github.com/en/actions/reference/encrypted-secrets).
- `CREDENTIAL_GITHUB_TOKEN` is the [GITHUB PERSONAL ACCESS TOKEN](https://github.com/settings/tokens) with full repository access saved [as a secret](https://docs.github.com/en/actions/reference/encrypted-secrets).
- `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.