Skip to content

Commit

Permalink
Adjust deploy-review-app script (badges#9317)
Browse files Browse the repository at this point in the history
  • Loading branch information
LitoMore authored Jun 26, 2023
1 parent 53efe52 commit c47f932
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/scripts/deploy-review-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ org="shields-io"
# This will fail if $PR_NUMBER is not a valid PR
pr_json=$(curl --fail "https://api.github.com/repos/badges/shields/pulls/$PR_NUMBER")

# Attempt to apply the PR diff to the target branch
# This will fail if it does not merge cleanly
# Checkout the PR branch
git config user.name "actions[bot]"
git config user.email "actions@users.noreply.github.com"
git fetch origin "pull/$PR_NUMBER/head:pr-$PR_NUMBER"
git merge "pr-$PR_NUMBER"
git checkout "pr-$PR_NUMBER"

# If the app does not already exist, create it
if ! flyctl status --app "$app"; then
Expand Down

0 comments on commit c47f932

Please sign in to comment.