Skip to content

Commit

Permalink
asdad
Browse files Browse the repository at this point in the history
  • Loading branch information
EliMoshkovich committed Apr 14, 2024
1 parent 2b1b0c0 commit 7c215f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/authz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
# Extract the secret from the response which is the API_KEY of the new env
echo "ENV_API_KEY=$(echo "$response" | jq -r '.secret')" >> $GITHUB_ENV
ENV_API_KEY=$(echo "$response" | jq -r '.secret')
echo "New env api key: $ENV_API_KEY"
Expand All @@ -55,11 +56,12 @@ jobs:
-H 'Content-Type: application/json')
# Extract and echo the ID of the "dev" environment
echo "DEV_ID=$("$response" | jq -r '.[] | select(.key == "dev") | .id')" >> $GITHUB_ENV
DEV_ID=$(echo "$response" | jq -r '.[] | select(.key == "dev") | .id')
echo "DEV_ID=$(echo "$response" | jq -r '.[] | select(.key == "dev") | .id')" >> $GITHUB_ENV
# Print the Development env ID
echo "Development env ID is: $DEV_ID"
- name: Copy from 'Development' to 'pr-${{ steps.extract_branch.outputs.branch }}'
run: |
curl -X POST https://api.permit.io/v2/projects/${{ env.PROJECT_ID }}/envs/${{ env.DEV_ID }}/copy \
Expand Down

0 comments on commit 7c215f2

Please sign in to comment.