Skip to content

Commit

Permalink
Do not add comment when deleting a preview
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmathieson authored Jan 28, 2022
1 parent 3608638 commit 92b6159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ EOF

if [ -z "$GITHUB_TOKEN" ] ; then
echo "Skipping comment as GITHUB_TOKEN not provided"
else
elif [ "$AMPLIFY_COMMAND" != "delete" ]; then
SUBDOMAIN_NAME=$(echo $BRANCH_NAME | sed 's/[^a-zA-Z0-9-]/-/')
curl -X POST $COMMENT_URL -H "Content-Type: application/json" -H "Authorization: token $GITHUB_TOKEN" --data '{ "body": "'"Preview branch generated at https://$SUBDOMAIN_NAME.${AmplifyAppId}.amplifyapp.com"'" }'
fi

0 comments on commit 92b6159

Please sign in to comment.