Skip to content

Commit

Permalink
debug creation
Browse files Browse the repository at this point in the history
  • Loading branch information
xavfernandez committed Sep 18, 2024
1 parent 69106b7 commit 76dd35b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/review-app-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,17 @@ jobs:
- name: 🚀 Deploy to Clever Cloud
run: |
$CLEVER_CLI link $REVIEW_APP_NAME --org itou_review_apps
$CLEVER_CLI deploy --branch $BRANCH --force
git remote add review_app $($CLEVER_CLI applications --json | jq --raw-output .[0].deploy_url)
git remote -v
GIT_ASKPASS=$(mktemp) && chmod u+rx $GIT_ASKPASS && export GIT_ASKPASS
cat > $GIT_ASKPASS <<< '#!/bin/bash
case "$1" in
Username*) exec echo "$CLEVER_TOKEN" ;;
Password*) exec echo "$CLEVER_SECRET" ;;
esac
'
git push review_app $BRANCH:master
$CLEVER_CLI deploy --branch $BRANCH --force --same-commit-policy rebuild
- name: 🍻 Add link to pull request
uses: thollander/actions-comment-pull-request@v2.5.0
Expand Down

0 comments on commit 76dd35b

Please sign in to comment.