Skip to content

Commit

Permalink
fix: switch to using github cli
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeSchwert committed Jun 18, 2024
1 parent fe52ff7 commit c4ba8d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/scripts/check_team_membership.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ set -x
USER=$1
TOKEN=$2

echo "$(curl -L \
echo "$(gh api \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/orgs/immutable/teams)"
/orgs/immutable/teams)"

echo "$(curl -L \
echo "$(gh api \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/orgs/immutable/teams/sdk/members)"
/orgs/immutable/teams/sdk/members)"

response=$(curl -L -H "Authorization: Bearer $TOKEN" -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/orgs/immutable/teams/sdk/memberships/codeschwert")
response=$(gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/orgs/immutable/teams/sdk/memberships/codeschwert)

echo "$response"

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
jobs:
update:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.UNITY_IMMUTABLE_SDK_GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down

0 comments on commit c4ba8d0

Please sign in to comment.