Skip to content

Commit

Permalink
Update environmental variable in GitHub workflow
Browse files Browse the repository at this point in the history
The environmental variable name for storing the GitHub token in GitHub Actions workflow file (test.yml) has been changed from GH_TOKEN to GITHUB_TOKEN. Additionally, the explicit GitHub login command using the stored token has been removed.
  • Loading branch information
Cliftonz committed May 27, 2024
1 parent b74623c commit ceddd12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ jobs:
- name: List team members ad check
id: check-user
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
gh auth login --with-token <<< $GH_TOKEN
members=$(gh api --paginate "organizations/77433905/team/5565599/members" | jq -r '.[] | .login')
echo "Team members: $members"
if [[ $members == *"$PR_CREATOR"* ]]; then
Expand Down

0 comments on commit ceddd12

Please sign in to comment.