Created
September 4, 2023 02:43
-
-
Save emileten/9a717777d6457af7747cfcf61c0b2fc0 to your computer and use it in GitHub Desktop.
Export github environment variables to current shell environment through github api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eval $(gh api repos/{owner}/{repo}/environments/{environment_name}/variables | jq -r '.variables[] | "export \(.name)=\(.value)"') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment