mirror of
https://github.com/badges/shields.git
synced 2025-04-18 19:44:04 +03:00
Adjust deploy-review-app
script
This commit is contained in:
parent
53efe52801
commit
f8cd1c9ac7
5
.github/scripts/deploy-review-app.sh
vendored
5
.github/scripts/deploy-review-app.sh
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user