Skip to content

Commit

Permalink
Check if we're logged into gh before trying
Browse files Browse the repository at this point in the history
  • Loading branch information
dougch committed Nov 8, 2022
1 parent b4537ab commit 305fd14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion codebuild/bin/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ get_latest_release(){
gh_login(){
# Takes secrets manager key as an argument
# This GH personal access token must have 'repo' permsissions to work.
aws secretsmanager get-secret-value --secret-id "$1" --query 'SecretString' --output text |jq -r '.secret_key'| gh auth login --with-token
gh auth status || aws secretsmanager get-secret-value --secret-id "$1" --query 'SecretString' --output text |jq -r '.secret_key'| gh auth login --with-token

#gh auth status
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ artifacts:
- "**/*.json"
base-directory: "tests/integrationv2/target/criterion"
discard-paths: no

0 comments on commit 305fd14

Please sign in to comment.