Skip to content

Commit

Permalink
follow curl redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
academo committed Oct 29, 2024
1 parent 067572e commit 30c82cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/issue-opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ on:
issues:
types: [opened]

concurrency:
group: pr-issue-commands-${{ github.event.number }}

permissions:
contents: read
id-token: write

jobs:
main:
runs-on: ubuntu-latest
Expand All @@ -32,12 +30,14 @@ jobs:
- name: Check org membership
id: check_membership
run: |
STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
STATUS=$(curl -L -s -o /dev/null -w "%{http_code}" \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ steps.generate_token.outputs.token }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/orgs/grafana/members/${{ github.event.issue.user.login }}")
echo "HTTP Status code was: $STATUS"
if [ "$STATUS" = "204" ]; then
echo "is_member=true" >> "$GITHUB_OUTPUT"
else
Expand Down

0 comments on commit 30c82cc

Please # to comment.