updated github_actions_repo_set_secret.sh

pull/2/head
Hari Sekhon 3 years ago
parent 1fd8d71c84
commit b664dc357c

@ -31,15 +31,19 @@ If no second argument is given, reads environment variables from standard input,
Examples: Examples:
${0##*/} github/HariSekhon/DevOps-Bash-tools AWS_ACCESS_KEY_ID=AKIA... ${0##*/} HariSekhon/DevOps-Bash-tools AWS_ACCESS_KEY_ID=AKIA...
echo AWS_ACCESS_KEY_ID=AKIA... | ${0##*/} HariSekhon/DevOps-Bash-tools echo AWS_ACCESS_KEY_ID=AKIA... | ${0##*/} HariSekhon/DevOps-Bash-tools
echo AWS_ACCESS_KEY_ID=AKIA... | gh secret set -R HariSekhon/DevOps-Bash-tools -f -
Loads both AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY via stdin: Loads both AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY via stdin:
aws_csv_creds.sh credentials_exported.csv | ${0##*/} HariSekhon/DevOps-Bash-tools aws_csv_creds.sh credentials_exported.csv | ${0##*/} HariSekhon/DevOps-Bash-tools
aws_csv_creds.sh credentials_exported.csv | gh secret set -R HariSekhon/DevOps-Bash-tools -f -
Requires the GitHub CLI 'gh' to be installed and available in the \$PATH Requires the GitHub CLI 'gh' to be installed and available in the \$PATH
" "

Loading…
Cancel
Save