Skip to content

Commit

Permalink
fixing .ci errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyasaxena21 committed Mar 9, 2021
1 parent 1884489 commit d9672a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ if $(echo $USER | fgrep -wq -e ndmckinley -e danawillow -e emilymye -e megan07 -
exit 0
else
echo "Checking GCP org membership"
GCP_MEMBER=$(curl -sw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/GoogleCloudPlatform/members/$USER -o /dev/null)
GCP_MEMBER=$(curl -Lsw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/GoogleCloudPlatform/members/$USER -o /dev/null)
if [ "$GCP_MEMBER" != "404" ]; then
echo "User is a GCP org member, exiting"
exit 0
else
echo "Checking googlers org membership"
GOOGLERS_MEMBER=$(curl -sw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/googlers/members/$USER -o /dev/null)
GOOGLERS_MEMBER=$(curl -Lsw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/googlers/members/$USER -o /dev/null)
if [ "$GOOGLERS_MEMBER" != "404" ]; then
echo "User is a googlers org member, exiting"
exit 0
Expand All @@ -30,4 +30,4 @@ else
fi

# Pass PR number to runner, which expects it
sh /run_vcr_tests.sh $PR_NUMBER
sh /run_vcr_tests.sh $PR_NUMBER
6 changes: 3 additions & 3 deletions .ci/containers/terraform-vcr-tester/check_membership.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ if $(echo $USER | fgrep -wq -e ndmckinley -e danawillow -e emilymye -e megan07 -
echo "User is on the list, not skipping."
else
echo "Checking GCP org membership"
GCP_MEMBER=$(curl -sw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/GoogleCloudPlatform/members/$USER -o /dev/null)
GCP_MEMBER=$(curl -Lsw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/GoogleCloudPlatform/members/$USER -o /dev/null)
if [ "$GCP_MEMBER" != "404" ]; then
echo "User is a GCP org member, continuing"
else
echo "Checking googlers org membership"
GOOGLERS_MEMBER=$(curl -sw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/googlers/members/$USER -o /dev/null)
GOOGLERS_MEMBER=$(curl -Lsw '%{http_code}' -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/orgs/googlers/members/$USER -o /dev/null)
if [ "$GOOGLERS_MEMBER" != "404" ]; then
echo "User is a googlers org member, continuing"
else
Expand All @@ -27,4 +27,4 @@ else
fi

# Pass PR number to runner, which expects it
sh /run_vcr_tests.sh $PR_NUMBER
sh /run_vcr_tests.sh $PR_NUMBER

0 comments on commit d9672a1

Please sign in to comment.