Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c47f932

Browse files
authored
Adjust deploy-review-app script (badges#9317)
1 parent 53efe52 commit c47f932

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/scripts/deploy-review-app.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ org="shields-io"
1010
# This will fail if $PR_NUMBER is not a valid PR
1111
pr_json=$(curl --fail "https://api.github.com/repos/badges/shields/pulls/$PR_NUMBER")
1212

13-
# Attempt to apply the PR diff to the target branch
14-
# This will fail if it does not merge cleanly
13+
# Checkout the PR branch
1514
git config user.name "actions[bot]"
1615
git config user.email "[email protected]"
1716
git fetch origin "pull/$PR_NUMBER/head:pr-$PR_NUMBER"
18-
git merge "pr-$PR_NUMBER"
17+
git checkout "pr-$PR_NUMBER"
1918

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

0 commit comments

Comments
 (0)