Skip to content

Commit

Permalink
ISSUE-204: more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-aveiga committed Nov 25, 2024
1 parent 724f44d commit 276c215
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/actions/drainpipe/common/deployment-create/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,5 @@ runs:

- name: Create GitHub Deployment
run: |
export GITHUB_DEPLOYMENT=$(curl -f -X POST \
https://api.github.com/repos/$GITHUB_REPOSITORY/deployments \
-H 'Accept: application/vnd.github.v3+json' \
-H "Authorization: token ${{ inputs.github-token }}" \
-d "{\"ref\": \"$DRAINPIPE_SHA\", \"auto_merge\": false, \"environment\": \"${{ inputs.environment }}\", \"transient_environment\": false, \"required_contexts\": [], \"description\": \"Acquia Cloud environment\"}" \
)
export GITHUB_DEPLOYMENT_ID=$(echo $GITHUB_DEPLOYMENT | jq '.id')
echo "GITHUB_DEPLOYMENT_ID=$GITHUB_DEPLOYMENT_ID" >> $GITHUB_ENV
echo "Created GitHub Deployment ID $GITHUB_DEPLOYMENT_ID"
if [ -z "$GITHUB_DEPLOYMENT_ID" ] || [ "$GITHUB_DEPLOYMENT_ID" = "null" ]; then echo $GITHUB_DEPLOYMENT && exit 1; fi
curl -f -H "Authorization: token ${{ inputs.github-token }}" -X POST -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/$GITHUB_REPOSITORY/deployments/$GITHUB_DEPLOYMENT_ID/statuses -d '{"state":"in_progress"}'
echo "More debugging"
shell: bash

0 comments on commit 276c215

Please sign in to comment.