Skip to content

Commit

Permalink
rc
Browse files Browse the repository at this point in the history
  • Loading branch information
elrayle committed Apr 11, 2024
1 parent eb6fa5c commit 9f4064a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deployable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# - name: Get team ID
# run: |
# org_name=$(echo "${{ github.repository }}" | cut -d / -f 1)
# org_name=$(echo "${{ github.repository_owner }}" | cut -d / -f 1)
# team_info=$(curl \
# -H "Authorization: token ${{ secrets.DEPLOY_TOKEN }}" \
# -H "Accept: application/vnd.github.v3+json" \
Expand All @@ -39,7 +39,7 @@ jobs:

- name: Get organization ID
run: |
org_name=$(echo "${{ github.repository }}" | cut -d / -f 1)
org_name=${{ github.repository_owner }}
org_info=$(curl \
-H "Authorization: token ${{ secrets.DEPLOY_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
Expand All @@ -50,15 +50,15 @@ jobs:
# TODO: UPDATE: change to input.user to github.actor when testing is done
- name: Check team membership
run: |
org_id=${{ steps.get-org-id.outputs.org_id }}
user="${{ inputs.user }}"
org_name=$(echo "${{ github.repository }}" | cut -d / -f 1)
org_id=${{ env.ORG_ID }}
org_name=${{ github.repository_owner }}
team_info=$(curl \
-H "Authorization: token ${{ secrets.DEPLOY_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/orgs/$org_name/teams)
team_id=$(echo "$team_info" | jq '.[] | select(.name=="${{ secrets.PRODUCTION_DEPLOYERS }}") | .id')
team_id=$(echo "$team_info" | jq '.[] | select(.name=="curation-dev") | .id')
response=$(curl \
-H "Authorization: token ${{ secrets.DEPLOY_TOKEN }}" \
Expand Down

0 comments on commit 9f4064a

Please sign in to comment.