Skip to content

Commit c4ba8d0

Browse files
committed
fix: switch to using github cli
1 parent fe52ff7 commit c4ba8d0

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/scripts/check_team_membership.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,20 @@ set -x
55
USER=$1
66
TOKEN=$2
77

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

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

20-
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")
18+
response=$(gh api \
19+
-H "Accept: application/vnd.github+json" \
20+
-H "X-GitHub-Api-Version: 2022-11-28" \
21+
/orgs/immutable/teams/sdk/memberships/codeschwert)
2122

2223
echo "$response"
2324

.github/workflows/update-version.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
jobs:
1313
update:
1414
runs-on: ubuntu-latest
15+
env:
16+
GH_TOKEN: ${{ secrets.UNITY_IMMUTABLE_SDK_GITHUB_TOKEN }}
1517
steps:
1618
- name: Checkout code
1719
uses: actions/checkout@v3

0 commit comments

Comments
 (0)