Skip to content

Commit d017fe7

Browse files
committed
test: set the member status inside the check member script
1 parent 9872652 commit d017fe7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/scripts/check_team_membership.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ response=$(gh api \
1818
echo "$response"
1919

2020
if echo "$response" | grep -q '"state":"active"'; then
21-
echo "true"
21+
IS_MEMBER=true
2222
else
23-
echo "false"
23+
IS_MEMBER=false
2424
fi
25+
echo "$IS_MEMBER"
26+
27+
# Set the environment variable for the GitHub workflow
28+
echo "IS_MEMBER=$IS_MEMBER" >> $GITHUB_ENV

.github/workflows/update-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Check team membership
2222
id: check_team
2323
run: |
24-
IS_MEMBER=$(./.github/scripts/check_team_membership.sh "${{ github.actor }}" "${{ secrets.UNITY_IMMUTABLE_SDK_GITHUB_TOKEN }}")
24+
./.github/scripts/check_team_membership.sh "${{ github.actor }}" "${{ secrets.UNITY_IMMUTABLE_SDK_GITHUB_TOKEN }}"
2525
echo "$IS_MEMBER"
2626
if [[ "$IS_MEMBER" != "true" ]]; then
2727
echo "Not a member of the SDK team, skipping update"

0 commit comments

Comments
 (0)