File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ response=$(gh api \
18
18
echo " $response "
19
19
20
20
if echo " $response " | grep -q ' "state":"active"' ; then
21
- echo " true"
21
+ IS_MEMBER= true
22
22
else
23
- echo " false"
23
+ IS_MEMBER= false
24
24
fi
25
+ echo " $IS_MEMBER "
26
+
27
+ # Set the environment variable for the GitHub workflow
28
+ echo " IS_MEMBER=$IS_MEMBER " >> $GITHUB_ENV
Original file line number Diff line number Diff line change 21
21
- name : Check team membership
22
22
id : check_team
23
23
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 }}"
25
25
echo "$IS_MEMBER"
26
26
if [[ "$IS_MEMBER" != "true" ]]; then
27
27
echo "Not a member of the SDK team, skipping update"
You can’t perform that action at this time.
0 commit comments