Skip to content

Github Tools

Ephrim Stanley edited this page May 20, 2022 · 1 revision

Overview

Miscellaneous Github scripting

# Install the gh cli

https://cli.github.com/

# Login 

gh auth login

# Use 

## List workflows 

gh workflow --repo github.com/finos/legend-engine list --all

## Filter workflow and print id 

gh workflow --repo github.com/finos/legend-engine list --all  | grep MSSQL | awk -F" " '{print $NF}'
20700755

## Enable/disable workflow

gh workflow --repo github.com/finos/legend-engine enable 2070075