Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
deploy-review-app
1 parent 53efe52 commit c47f932Copy full SHA for c47f932
1 file changed
.github/scripts/deploy-review-app.sh
@@ -10,12 +10,11 @@ org="shields-io"
10
# This will fail if $PR_NUMBER is not a valid PR
11
pr_json=$(curl --fail "https://api.github.com/repos/badges/shields/pulls/$PR_NUMBER")
12
13
-# Attempt to apply the PR diff to the target branch
14
-# This will fail if it does not merge cleanly
+# Checkout the PR branch
15
git config user.name "actions[bot]"
16
git config user.email "[email protected]"
17
git fetch origin "pull/$PR_NUMBER/head:pr-$PR_NUMBER"
18
-git merge "pr-$PR_NUMBER"
+git checkout "pr-$PR_NUMBER"
19
20
# If the app does not already exist, create it
21
if ! flyctl status --app "$app"; then
0 commit comments