We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f1f224 commit d32a312Copy full SHA for d32a312
.github/workflows/script/build.sh
@@ -79,8 +79,12 @@ elif [[ $1 == --pull ]]; then
79
time=$(TZ=Asia/Tokyo date +'%F %T %Z')
80
81
# 基底ブランチに新しいコミットがある場合のため、基底リポジトリから取り寄せる
82
- git remote add base "$base_git_url"
83
- git fetch base "$base_git_ref"
+ if [[ $base_git_url && $base_git_ref ]]; then
+ # 手動でトリガーした時は github.event.pull_request.base が空のことがある?
84
+ # なので非空の時にのみ実行
85
+ git remote add base "$base_git_url"
86
+ git fetch base "$base_git_ref"
87
+ fi
88
89
echo "# PR [\#$pr]($preview_repo_url/pull/$pr) プレビュー"
90
echo "- ⌚ 更新時刻: $time"
0 commit comments