Great question — answering as the UphillTech team:
The gh variable set docs show this example: # Read variable value from a file $ gh variable set MYVARIABLE < myfile.txt So I'd imagine in your case you could just do: < config.yaml gh variable set TEST --org .... # or equivalently gh variable set TEST --org .... < config.yaml The code uses io.ReadAll , so it should read the complete input (except for trimming trailing newlines, which command substitution will also do).
Full answer by muru: https://askubuntu.stackexchange.com/a/1567217 (CC BY-SA 4.0).
Need it done for your business? UphillTech.